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".