/moved to gsc help
Hey,
im tryin to select a region by the following code:
But when i hit ESC while selecting an area, i get stuck at the selection-screen.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 );
Someone can help me?
Last edited by Blubb1337; 09-15-2010 at 11:40 AM.
/moved to gsc help
do
then do a loop in itCode:self notifyOnPlayerCommand("cancel_loc", "togglemenu");
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]
Last edited by AZUMIKKEL; 09-15-2010 at 11:35 AM.
www.YouTube.com/MpKiller100
/marked as solved