AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Check when a user is "inside" a trigger_* entity? (https://forums.alliedmods.net/showthread.php?t=144092)

Drak 11-28-2010 19:51

Check when a user is "inside" a trigger_* entity?
 
I have a bunch of "trigger_once" entity's around my map.
I would like to check when a user is "inside" one of these triggers.

I can easily check when they "touched" it. But how will I know when they "exit" the trigger?

Lightokun 11-28-2010 20:27

Re: Check when a user is "inside" a trigger_* entity?
 
http://www.amxmodx.org/funcwiki.php?go=func&id=939
http://www.amxmodx.org/funcwiki.php?go=func&id=349
Maybe this can help?

Drak 11-28-2010 20:49

Re: Check when a user is "inside" a trigger_* entity?
 
Quote:

Originally Posted by Lightokun (Post 1359225)

I was using that before, but I wanted something abit more precise.

Exolent[jNr] 11-28-2010 22:10

Re: Check when a user is "inside" a trigger_* entity?
 
Check touch and have a delay check for touching.
When player touches the entity, remove the touch task and set a new touch task to 0.1.
When the task function is called, the player is no longer touching the entity.


All times are GMT -4. The time now is 13:04.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.