Raised This Month: $29 Target: $400
 7% 

Check when a user is "inside" a trigger_* entity?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Drak
Veteran Member
Join Date: Jul 2005
Old 11-28-2010 , 19:51   Check when a user is "inside" a trigger_* entity?
Reply With Quote #1

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?
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Lightokun
Member
Join Date: Oct 2009
Old 11-28-2010 , 20:27   Re: Check when a user is "inside" a trigger_* entity?
Reply With Quote #2

http://www.amxmodx.org/funcwiki.php?go=func&id=939
http://www.amxmodx.org/funcwiki.php?go=func&id=349
Maybe this can help?
__________________
Lightokun is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 11-28-2010 , 20:49   Re: Check when a user is "inside" a trigger_* entity?
Reply With Quote #3

I was using that before, but I wanted something abit more precise.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-28-2010 , 22:10   Re: Check when a user is "inside" a trigger_* entity?
Reply With Quote #4

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.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:03.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode