Raised This Month: $ Target: $400
 0% 

Hook the specific target being triggered without registering all entities?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Rirre
Veteran Member
Join Date: Nov 2006
Old 06-13-2014 , 16:31   Hook the specific target being triggered without registering all entities?
Reply With Quote #1

Instead of using register_touch, Ham_Use...and so on.
Is there any way to detect if the specific target has been triggered? Only once per triggered targetname?
Examples:
Code:
"origin" "0 0 0"
"target" "spawn"
"classname" "trigger_once"
Code:
"origin" "0 0 0"
"target" "spawn"
"classname" "trigger_multiple"
Code:
"origin" "0 0 0"
"spawn" "0"
"classname" "multi_manager"
Here I want to detect if "spawn" has been triggered. Just once. Without registering all these entities within plugin_init with a global bool which each registered entity check if it already have been set to true or false.
Or is it just possible creating a new entity, for e.g. func_button with targetname "spawn" and hook it from there with Ham_Use?

EDIT: Posted into the wrong forum, it was supposed to be located in "Scripting help".

Last edited by Rirre; 06-13-2014 at 17:40.
Rirre is offline
 



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 21:17.


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