Blockland Forums > Modification Help
Could somone tell me what this code is...
leonstormrat23:
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?
DrenDran:
--- Quote from: leonstormrat23 on April 19, 2011, 10:25:41 AM ---just give me the code so I can lock this topic and move with life faster....?
--- End quote ---
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.
Greek2me:
--- Quote from: Greek2me on April 19, 2011, 01:03:41 AM ---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.
--- End quote ---
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.
Brian_Smith3:
It is in the dragons mod.
You dont deserve help. Please stop posting.
TripleNickels:
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.