Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → Finding out player who is dealing damage
Finding out player who is dealing damage
2001-07-24, 8:53 AM #1
Hi, me again lol.

Is there a way to get the signature of the player who is damaging another player? GetSourceRef() seems to return the projectile's signature, at least it's not a stable int which is returned...

To clarify a bit, what I am going for is:

damaged:
if(damagingplayer == player) do this
else do that


Thanks in advance once again,

-Raze
--
You are all just jealous because you can't hear the small voices!!
2001-07-24, 11:24 AM #2
GetThingParent(GetSourceRef()); Will return the person who delt the damage.

------------------
-Hell Raiser
X-Treme Cogger for DBZ: TDIR
-Hell Raiser
2001-07-24, 12:16 PM #3
Excellent =)

Would've found out if I had looked harder at the specs but oh well, gets you some work to do, lol.

-Raze
--
You are all just jealous because you can't hear the small voices!!

↑ Up to the top!