Raised This Month: $ Target: $400
 0% 

[REQUEST] Entity triggering


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Silencer123
Veteran Member
Join Date: Jul 2006
Old 10-01-2006 , 14:45   [REQUEST] Entity triggering
Reply With Quote #1

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. ...
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 10-02-2006 at 08:04.
Silencer123 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 04:55.


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