AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to check if correct entity get triggered. (https://forums.alliedmods.net/showthread.php?t=185596)

Hyper Nova 05-19-2012 12:57

How to check if correct entity get triggered.
 
Hello,

I need to check things like example when func_door get triggered on map it will call my function
or some point entity get triggered then call my function.


Question is how i do it?
Thank you in advance!

<VeCo> 05-19-2012 13:01

Re: How to check if correct entity get triggered.
 
Ham_Use?

Hyper Nova 05-19-2012 13:08

Re: How to check if correct entity get triggered.
 
Quote:

Originally Posted by <VeCo> (Post 1712251)
Ham_Use?

Is this called when all the type entities get triggered?

<VeCo> 05-19-2012 13:09

Re: How to check if correct entity get triggered.
 
Yes, that will work for doors, breakables and etc...

ConnorMcLeod 05-19-2012 13:40

Re: How to check if correct entity get triggered.
 
With hamsandwich you can hook Ham_Touch with class "func_door", you will get any touch, even when the door is moving and that no Touch function is set on that entity, therefore you will have to check togglestate.
If you use Rage module, you can only hook specific DoorTouch function that is only triggered when door is completely closed and something touches it, it also happens if door is completely opened and that door doesn't auto comeback.


All times are GMT -4. The time now is 00:22.

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