That's why i said:
//assuming this is correct.
%this.addVelocity(%player.getEyeVector());
Treynolds will come in here with the sorcery math to help you out.
Okay
Modified the script a little:
package directionaljet
{
function Armor::onTrigger(%this, %player, %slot, %val)
{
parent::onTrigger(%this, %player, %slot, %val);
if(%slot == 4 && %val == 1)
{
%player.directionalJet(%player,1);
}
else
if(%slot == 4 && %val == 0)
{
%player.directionalJet(%player,0);
}
}
};
activatePackage(directionaljet);
function player::directionalJet(%this,%bool)
{
if(%bool)
{
cancel(%this.djl);
//assuming this is correct.
%this.addVelocity(%player.getEyeVector());
%this.djl = %this.schedule(1,directionalJet,%bool);
}
else
{
return 0;
}
}