[Solved]Artillery Selector

Posts 1–5 of 5 · Page 1 of 1
[Solved]Artillery Selector
Hey,
im tryin to select a region by the following code:
Code:
self endon("disconnect");
self endon("cancel_location");
 
self beginLocationSelection( "map_artillery_selector", true, ( level.mapSize / 5.625 ) );
self.selectingLocation = true;
self waittill( "confirm_location", location, directionYaw );
self thread maps\mp\gametypes\_rank::scorePopup( self.bomberXP, 0, level.pops, 0 );
But when i hit ESC while selecting an area, i get stuck at the selection-screen.
Someone can help me?
/moved to gsc help
do
Code:
self notifyOnPlayerCommand("cancel_loc", "togglemenu");
then do a loop in it
Code:
self waittill("cancel_loc");
self notify("cancel_location");
I see that's from my Custom Killstreaks mod.

[php] self thread triggerLaptop("Napalm Strike");
self.bomberXP = 2500;
wait 0.80;
self thread makeBomber();[/php]

[php]triggerLaptop(strName)
{
self endon("death");
self endon("esckey");

self.beforehandweapon = self getCurrentWeapon();

self thread exitOnEscape(strName);

self giveWeapon("killstreak_precision_airstrike_mp");
self switchToWeapon("killstreak_precision_airstrike_mp" );
wait 0.20;
self waittill("confirm_location");
self switchToWeapon(self.beforehandweapon);
wait 0.80;
self takeWeapon("killstreak_precision_airstrike_mp");
}
[/php][php]
exitOnEscape(strName)
{
self endon("confirm_location");
self endon("death");
self waittill("cancel_location");

self endLocationSelection();
self switchToWeapon(self.beforehandweapon);
wait 0.80;
self takeWeapon("killstreak_precision_airstrike_mp");
self thread dealStreak(strName, undefined, 0);
}[/php]



(This is for having the laptop in as well. To do without laptop just launch this thread.)
[php]
exitOnEscape(strName)
{
self endon("confirm_location");
self endon("death");
self waittill("cancel_location");

self endLocationSelection();
// Everything below this is not needed if you don't use
// laptop or my custom killstreaks mod base
// so delete that if you dont need it.
self switchToWeapon(self.beforehandweapon);
wait 0.80;
self takeWeapon("killstreak_precision_airstrike_mp");
self thread dealStreak(strName, undefined, 0);
}[/php]
/marked as solved
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us