Blockland Forums > Modification Help
Help with detecting Playertouch
<< < (2/2)
MegaScientifical:
It's doing a default event/command that isn't part of his Add-On.
Amade:
armor::onCollision is being packaged. You could just use yourDatablock::onCollision. The arguments are %this, %obj, %col, %norm, %speed
Lando The Climber:
Might as well have just spoke Japanese, O.o I appreciate the help but I don't understand any of that, I got lost at arguments.
Amade:

--- Quote from: Lando The Climber on November 09, 2011, 06:22:37 PM ---Might as well have just spoke Japanese, O.o I appreciate the help but I don't understand any of that, I got lost at arguments.
--- End quote ---

--- Code: ---package PrepperCollision
{
function armor::onCollision(%this, %obj, %col, %norm, %speed)
{
//do some stuff
//%obj is of datablock %this, and collided with %col at %speed (direction %norm)
parent::onCollision(%this, %obj, %col, %norm, %speed);
}
};
--- End code ---
Navigation
Message Index
Previous page

Go to full version