I'm in a bit of a pickle.
I'm trying to make a projectile that puts an item in the collision's inventory. This worked fine. Then, I tried to make the projectile bounce. It has somehow messed with my script.
function myProjectile::onCollision(%this,%obj,%col)
{
if(%col.getClassName() $= "Player"){
for(%i=0;%i<%col.getDatablock().maxTools;%i++){
if(!%col.tool[%i]){
%col.tool[%i] = myItem;
messageClient(%col.client, 'MsgItemPickup', '', %i, nameToID(myItem));
break;
}
}
}
parent::onCollision(%this,%obj,%col);
}
Is this just something simple flying over my head?