function armor::onTrigger(%this,%obj,%slot,%val)
{
if(%slot == 4 && isObject(%obj.client))
{
if(!%val && %obj.swordSwing)
{
%obj.swordSwing = 0;
}
else
{
if(!%obj.swordSwing)
{
%obj.swordSwing = 1;
%obj.setImageTrigger(1,1);
}
}
}
parent::onTrigger(%this,%obj,%slot,%val);
}
clearly I need something more advanced than setImageTrigger, but this is kinda new to me