Blockland Forums > Modification Help

Afterburners

Pages: (1/2) > >>

RedGajin:

I was editing the F18 script, and decided to make it have afterburners. I can it make so when you press spacebar, you go faster, but only in one direction. So if i face one way, i go fast forwards, but the other way i go fast backwards. How would i make it so you go faster the way your looking?


--- Code: ---// spacebar!
   function F18Vehicle::onTrigger(%this,%obj,%client)
   {

%obj.setvelocity("5000 0 0"); //this

   }
--- End code ---


MegaScientifical:

Would probably require some use of %client.player.getForwardVector(); or something involving getting their aim... meh.

Mr.jacksaunt:

try looking at the turbo jeep script

RedGajin:


--- Quote from: MegaScientifical on June 27, 2010, 05:55:27 PM ---Would probably require some use of %client.player.getForwardVector(); or something involving getting their aim... meh.

--- End quote ---
Tried that, didn't work.

TheArmyGuy:

You know how fast 5000 is right? It is so fast that you will vaporize. Thats how fast. Exacteley what we need :3
Can you make fireB emitters?

Pages: (1/2) > >>

Go to full version