package directionaljet
{
function Armor::onTrigger(%this, %player, %slot, %val)
{
parent::onTrigger(%this, %player, %slot, %val);
while(%slot == 4 && %val == 1)
{
%player.addVelocity(%player.getEyeVector());
}
}
};
activatePackage(directionaljet);This crashes the game. I'm assuming this is because you can't put the eyevector right into addVelocity and expect it to work.
So, how do I change the eyeVector into a number that can be put there?