Blockland Forums > Modification Help
Getting a projectile's source item's user's client
Unicide:
Strange. I've tested that exact script alone (i.e. nothing else in the package) and with only default add-ons.
Destiny/Zack0Wack0:
Post the entire code, then.
Unicide:
--- Code: ---package testPackage2
{
function ProjectileData::damage(%this,%obj,%col,%fade,%pos,%normal)
{
messageClient(%obj.sourceClient,' ',"Bla Bla Bla Test");
Parent::damage(%this,%obj,%col,%fade,%pos,%normal);
}
};
activatePackage(testPackage2);
--- End code ---
That's it.
infiniteLoop:
add in error(%obj.sourceclient.name); and see if it echoes the client's name..
Mawpius:
--- Quote from: Amade ---I tested this and it works fine.
--- End quote ---
Didn't for me, but using %obj.sourceObject.client did.