Blockland Forums
Home
Help
Login
Register
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Getting attacking player on damage?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Getting attacking player on damage? (Read 495 times)
Wrapperup
May 27, 2014, 09:49:14 PM
I'm using Armor::Damage for detecting if a player is being damaged, but it appears there is no argument for the attacking player's object. Are there any better functions or a work around for this?
Ad Bot
Advertisement
Pecon
May 27, 2014, 09:54:09 PM
function ProjectileData::damage(%this,%obj,%col,%fade,%pos,%normal)
{
%attacker = %obj.sourceObject;
%attackee = %col;
}
Chrono
May 27, 2014, 10:06:28 PM
There should be an argument for the projectile though, which, does store a .sourceobject variable.
Wrapperup
May 27, 2014, 10:09:56 PM
Wait, im silly. I could have done that with Armor::damage, as it has an arg for a projectile. Thanks a ton.
Print
Pages: [
1
]
« previous
next »
Blockland Forums
»
Blockland Forums
»
Modification Help
»
Getting attacking player on damage?