![]() |
|
Help Wait until a player exits the trigger - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Help Wait until a player exits the trigger (/Thread-Help-Wait-until-a-player-exits-the-trigger.html) |
Wait until a player exits the trigger - Rendflex - 10-13-2011 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". RE: Wait until a player exits the trigger - iAegle - 10-13-2011 (10-13-2011, 16:46)Rendflex Wrote: Is there any function/waittill which detects when a player is leaving a trigger? 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 |