|
I have a simple question about pCaller and
pActivator and also another question about accessing the player that sets them
off.
1. What is the difference between pCaller and
pActivator. From what i have seen pActivators are basically what sets off doors
ie whether it be a player or another entity.. but the doors are the only thing i
have seen pActivator used where it isn't NULL.. but mind you i didn't search
far. pCallers held what set off func_breakables etc. Anyhow thats what i noticed
but can someone who knows what they are talking about explain it to
me?
2. Say i have a breakable box and a button.
Pressing the button breaks the box. the box's pCaller is the button. The
buttons pCaller is the player. So technically the box's real invoker is the
player. How would i from the func_breakables ent's use function get the
player that had it destroyed? I need this to award points to the team that
destroyed it..... by getting the player i can send there team and the amount of
points over to award.
Any help on both of these would be greatly
appreciated. What i have written i think is pretty straight forward but if
anyone requires further explanation to help me with this problem just
ask.
|
- Re: [hlcoders] pActivator...... pCaller Christopher Long
- Re: [hlcoders] pActivator...... pCaller Reedbeta
- Re: [hlcoders] pActivator...... pCaller Christopher Long

