Blockland Forums > Modification Help
Getting a projectile's source item's user's client
<< < (3/5) > >>
Amade:

--- Quote from: infiniteLoop on October 09, 2011, 06:06:28 PM ---I thought it was %obj.sourceobject.client ...
--- End quote ---
That will work but %obj.sourceClient is usually defined as well.
Unicide:
Here's all it is right now.

--- Code: ---ProjectileData::damage(%this,%obj,%col,%fade,%pos,%normal)
{
messageClient(%obj.sourceClient,' ',"Bla Bla Bla Test");
Parent::damage(%this,%obj,%col,%fade,%pos,%normal);
}
--- End code ---
This is contained in a package I activate.
Mawpius:

function ProjectileData::damage(%this,%obj,%col,%fade,%pos,%normal)
{
messageClient(%obj.sourceClient,' ',"Bla Bla Bla Test");
Parent::damage(%this,%obj,%col,%fade,%pos,%normal);
}
Unicide:
It's there in the actual thing. I wrote that from memory.
Amade:

--- Quote from: Unicide on October 09, 2011, 10:15:13 PM ---Here's all it is right now.
--- Code: ---ProjectileData::damage(%this,%obj,%col,%fade,%pos,%normal)
{
messageClient(%obj.sourceClient,' ',"Bla Bla Bla Test");
Parent::damage(%this,%obj,%col,%fade,%pos,%normal);
}
--- End code ---
This is contained in a package I activate.
--- End quote ---
I tested this and it works fine.
Navigation
Message Index
Next page
Previous page

Go to full version