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 → get the killer
get the killer
2002-03-09, 1:04 PM #1
How do we get the killer of a killed player? Datamaster says that the Source is the direct thing that killed (explosion etc.)...
but I want the other player.
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-03-09, 1:12 PM #2
Try this.


killed:
kill = GetSourceRef();
killer = GetThingParent(kill);
Return;



[This message has been edited by The_New_Guy (edited March 09, 2002).]
- Wisdom is 99% experience, 1% knowledge. -
2002-03-09, 3:25 PM #3
Save a few variables:


Killer = Getthingparent(Getsourceref());
Stop;

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-09, 3:32 PM #4
hmmm...GBK is always saving memory. I hope you know that PC Processors like simple instructions. They can handle 3 simple instructions ways faster than 1 3times boxed...
barb...
thank you guys.
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)

↑ Up to the top!