Author Topic: OnProjectile variable.  (Read 746 times)

What is the variable for the client that get's hit by the projectile such as %victim.

Example:Client A fires a arrow. Client B is hit by the arrow. What is client B's variable.

3rd argument's client.
However I doubt you would understand that.


The third argument is usually referred to as %col, so %col.client

The third argument is usually referred to as %col, so %col.client
Thank's

Code: [Select]
if this object is a Player classtype, it should have a .client
Josh says:
So such as %LolTeamKiller.client
Chrono says:
if that were the 3rd arg, it would be the one who got hit, if it were the 2nd, it would be the one who fired the projectile (in a normal case)
Josh says:

Future Referance.

Just clarifying, the projectile's client is the client who fired? Good to know.

Yes.
Projectiles (If created properly) should have a sourceObject, client, and slot.
sourceObject is the player that fired, client is the client that fired, and slot is the slot the weapon is in on the player that fired.