Author Topic: Player type and adding velocity ( by jetting )  (Read 1182 times)

On everytime I jet, I am set to a certain velocity, with emitters, sound, and stuff.
Please help me out

So is this a problem you are having, or is some sort of add-on suggestion?
If it's a problem, please post console.log.



I know i forgeted something up, dont judge

I know i forgeted something up, dont judge
This should have gone in coding help.

NOEDIT:
if you read the syntax errors you would've noticed that you are missing a semi colon at the end of jumpSufaceAngle = 35, you put a semi colon on the end of if(%slot == 4 &&%val == 0); which shouldn't be there.

Also, the jet thing will still be working, even after the player dies or changes datablock. And that jet thing makes you go at uncontrollable speeds, ask coding help for help with this.

line 40 you put %plyer instead of %player
Code: [Select]
function player::directionalJet(%this,%bool)
{
if(%bool)
{
cancel(%this.djl);
%this.addVelocity(%this.getEyeVector());
%this.djl = %this.schedule(1,directionalJet,%bool);
}
else
{
return 0;
}
}
I don't think this will ever stop going up, try putting the cancel before the if statement