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".

#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




Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Sentry Gun kill = Player kill Snake 8 8,391 11-07-2013, 13:41
Last Post: Nekochan
  Player can write Fl0w_.JACKDAN 2 5,190 09-19-2013, 16:36
Last Post: Fl0w_.JACKDAN
  Help Resetting a "wait"? DidUknowiPwn 3 4,200 08-17-2013, 15:37
Last Post: DidUknowiPwn
  [CoD 4] Trying to set a player -- DidUknowiPwn 7 8,413 07-03-2013, 21:58
Last Post: Pozzuh
Video Preview AIZombies eXtreme 2.0 / Zombie Player (Music Player) DidUknowiPwn 4 8,184 06-24-2013, 16:37
Last Post: DidUknowiPwn
  "VEH_LinkCommonChecks: Player already has an owner" - After long games akillj 4 5,503 06-07-2013, 11:38
Last Post: akillj
  Question on how to "Spawn" a flying rocket as a player? akillj 8 8,657 06-04-2013, 01:54
Last Post: rotceh_dnih
  Using Cheat Engine with Zombies Single Player kikkawa 3 14,952 06-03-2013, 01:18
Last Post: kikkawa
  [Request] Random player model hillbilly 1 3,899 05-12-2013, 08:30
Last Post: archit
Brick [Release] MW3 Single Player CONSOLE v1.9.433 can1907 13 37,622 05-01-2013, 15:18
Last Post: vton

Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.