2DWorlds Forums
Helicopter tool help - Printable Version

+- 2DWorlds Forums (http://2dworlds.buildism.net/forum)
+-- Forum: 2DWorlds (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=4)
+--- Forum: Scripting (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=13)
+--- Thread: Helicopter tool help (/showthread.php?tid=7756)



Helicopter tool help - Vast - 08-07-2011

Can anyone edit the Helicopter tool to launch rockets?like a KeyDown Function?


RE: Helicopter tool help - lol - 08-07-2011

The order and I have been talking lately whether to advance our military or to advance on Coke-flavored broccoli, we chose Coke-flavored broccoli, I'm afraid that we're not going to get that technology any time soon, so contact a scripter and see what he can do.


RE: Helicopter tool help - Agustin - 08-07-2011

function keyDown(c, hit)
if c == "b" then
local bomb = create("Box")
bomb.Name = "Bomb"
bomb.Size = Vec2D(2, 5)
bomb.Position = script.Parent.Flier.Position
if bomb.hit.Type = "Character" or "Box" then
local ex = create("Explosion")
ex.Position = bomb.Position
end
end
end


At the end of the script:

link(script.Parent.KeyDown, keyDown)