> 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?

Usually, pActivator will be the player that caused something to happen and
pCaller the object they used to do so.  For example, if a player kills another
player, pActivator is the player and pCaller is their weapon, or if the player
triggers a door via a button, the button will be the pCaller and the player the
pActivator.

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

In the door's Use function, pActivator should be the player.

--Reedbeta

__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to