Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Wait until a player exits the trigger
#1
Is there any function/waittill which detects when a player is leaving a trigger?

I'm talking about the opposite of this waittill:
Code:
waittill( "trigger", player );

I tried distancesquared with the radius of the trigger, but that dosen't work well since it isn't the exact same "area".
Reply

#2
(10-13-2011, 16:46)Rendflex Wrote: Is there any function/waittill which detects when a player is leaving a trigger?

I'm talking about the opposite of this waittill:
Code:
waittill( "trigger", player );

I tried distancesquared with the radius of the trigger, but that dosen't work well since it isn't the exact same "area".

Code:
while( true )
{
    trigger waittill( "trigger", player );

    if( !isDefined( trigger.lastPlayer )
        trigger.lastPlayer = player;
    else if( trigger.lastPlayer != player )
    {
        trigger.lastPlayer iPrintLnBold( "you left the trigger" );
        trigger.lastPlayer == player;
    }
}

maybe this?

edit: nvm this wont work because it needs another player to trigger it
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  cant wait for it House 2 3,616 11-24-2014, 11:18
Last Post: Yamato
  Help Sentry Gun kill = Player kill Snake 8 5,860 11-07-2013, 13:41
Last Post: Nekochan
  Player can write Fl0w_.JACKDAN 2 3,347 09-19-2013, 16:36
Last Post: Fl0w_.JACKDAN
  Help Resetting a "wait"? DidUknowiPwn 3 2,892 08-17-2013, 15:37
Last Post: DidUknowiPwn
  [CoD 4] Trying to set a player -- DidUknowiPwn 7 5,844 07-03-2013, 21:58
Last Post: Pozzuh
  [Release] Black Ops Single Player/Zombie Trainer V3.6 Craig87 52 88,512 07-01-2013, 15:12
Last Post: explosivebanana55
Video Preview AIZombies eXtreme 2.0 / Zombie Player (Music Player) DidUknowiPwn 4 5,863 06-24-2013, 16:37
Last Post: DidUknowiPwn
  "VEH_LinkCommonChecks: Player already has an owner" - After long games akillj 4 3,585 06-07-2013, 11:38
Last Post: akillj
  Question on how to "Spawn" a flying rocket as a player? akillj 8 5,540 06-04-2013, 01:54
Last Post: rotceh_dnih
  Using Cheat Engine with Zombies Single Player kikkawa 3 10,901 06-03-2013, 01:18
Last Post: kikkawa

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.