I suggest a public function which is triggered
when an entity is being triggered by another entity.
This can be Entity -> Entity and Player -> Entity.
Code:
public entity_action(ent,victim_ent,start_ent,type)
{
}
'ent' shall be the entity which triggers another entity.
'victim_ent' shall be the triggered entity.
'start_ent' shall be the entity that started the triggering chain.
'type' is triggering type. (Toggle, On, Off, Kill Target / 0, 1, 2, 3)
For example if a Player (ID 7) presses a Button (ID 143) we should get this:
Code:
ent=7
victim_ent=143
start_ent=7
type=0
Lets say the Buttons target is 'my_func_door' which is a
func_foor (ID 231) and the Button has delay of 1 Second,
we will get this 1 Second after the Player pressed the Button:
Code:
ent=143
victim_ent=231
start_ent=7
type=0
etc. ...
__________________