Author Topic: Could somone tell me what this code is...  (Read 795 times)

Ok, I have seen that a few helicopter add-ons have been in need of the spacebar to go up script.  And I am in need of someone to tell me what this script is so me and other can know what it is so we can add it to private add-ons and what-not, so could someone please post the code?
« Last Edit: April 21, 2011, 10:55:16 PM by leonstormrat23 »

just give me the code so I can lock this topic and move with life faster....?
This just sounds immature, posting a reply to a topic won't "slow down your life" at all.
First of all, why lock it? Why shouldn't people be able to discuss it further once code is posted?
Second, don't tell people who are giving up their time to help you for no other reason than to help to hurry up, it's obviously rude.

Ask about it in Coding Help. As long as you have a decent post and don't expect people to just make it for you, you'll be fine.

Anyway, the function you use to figure out when they press the key is Armor::onTrigger. You'll have to look up the arguements for that, just a simple search. Then to make the vehicle go up, you'd do something like vehicle.addVelocity("0 0 1"); Might want to check on that, I'm not positive.

It is in the dragons mod.
You dont deserve help. Please stop posting.

While I agree that it's stupid to outright expect people to give you code, he asked in a nice enough way and if I wasn't being super lazy I'd give him the code.

OK guys, I compleatly re-did this topic and in a nice way asked for the code but not only for my sake but for others benefit...

Download the dragon mod.

In that mod you should find a function called Armor::onTrigger. That's what you need.

Download the dragon mod.

In that mod you should find a function called Armor::onTrigger. That's what you need.

Ok thanks, then I will post the code so people can know what it is....