wrong
package test
{
function Armor::onTrigger(%this, %obj, %trigger, %state)
{
%cl = %obj.client;
if(%trigger == 0)
{
return;
}
parent::onTrigger(%this, %obj, %trigger, %state);
}
};
activatepackage(test);
I just tried this and added events to a brick OnActivate>Player>Kill
no hand animation no death
Right, because both the animation and the onactivate event are based on the function activatestuff() which is called from armor::onTrigger(), which you are blocking.
You would do much better to only package the activatestuff() function and to leave armor::ontrigger alone. You cannot guarantee that your package will always be on the highest directory, so some packages will be executed before your own. If yours does not always call parent::onTrigger, then that will inevitably cause problems and break things. armor::onTrigger is a callback, don't interrupt it.