package katanaDash
{
function armor::onTrigger(%this,%player,%slot,%val)
{
if(%player.getMountedImage(0) $= katanaImage.getID() && %slot $= 4)
{
if(%val)
{
if(%velX < 8 && %velX > -8 && %velY < 8 && %velY > -8)
{
//....
}
else
parent::onTrigger(%this, %player, %slot, %val);
}
else
parent::onTrigger(%this, %player, %slot, %val);
}
else
parent::onTrigger(%this, %player, %slot, %val);
}
};
activatePackage(katanaDash);
Are you sure this won't cause triggers to happen twice or more if you're holding the Katana but not moving and attempt to fire?
Yeah I already know, you can click repeatedly while standing on the spot to jump up a little bit higher. I thought it was pretty cool so I left it there.
cool, so did you fix the breaking of other right click functions that it used to have from memory?
Yeah that was my fault originally for forgetting to add a parent::onTrigger(); to one part of the script. It works fine now.