|
| 04 Aug 2011 12:16 PM |
| Hey guys I'm a newbie at making planes.. so I got Crazyman32's plane kit. If anyone could help me make a script that when f is pressed it fires a missile on a wing? I would do it myself, but crazyman's coding is so complex. |
|
|
| Report Abuse |
|
|
Ronnie124
|
  |
| Joined: 26 Nov 2009 |
| Total Posts: 694 |
|
| |
|
|
| 04 Aug 2011 12:18 PM |
| Lawl, I made the homing missile with his plane kit, and added several other functions to it also. I'm still stuck on the Billboard Gui part. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 12:26 PM |
| would you mind sharing your homing missile script with me? I promise I won't copy, just figure out what I have to do. |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Aug 2011 12:31 PM |
| well could you tell me what to do, then? |
|
|
| Report Abuse |
|
|
| |
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 04 Aug 2011 12:34 PM |
Then why post :/
I think he may have used RocketPropulsion and then set the target to a player with GUI: http://wiki.roblox.com/index.php/RBX.lua.RocketPropulsion_%28Object%29
As for a simple rocket one or more of the many 'body' instances will do. |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 12:34 PM |
1 dun g37 17! I dun get it!
What am I supposed to do with bodyvelocity? How do i use it? |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 04 Aug 2011 12:35 PM |
| Dang it! I swear every time I post, 2 people have beat me to it! |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 12:36 PM |
| RoflBread, I didn't use RocketPropulsion |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 04 Aug 2011 12:41 PM |
@Citymaster22 Just a guess :)
Techboy, just give me a min to draft up a script for you ;) |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 12:43 PM |
| Lawl it's not that easy. The lock system. BTW can you help me test? Start server won't open up NetworkSystem, so I can't start a player |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 04 Aug 2011 12:56 PM |
Ok, please don't laugh, i have never scripted a missle before:
local canFire = true local launcher = part from which the missle will appear to be have fired local size = Vector3.new(1,1,1) -- change local force = 5 function missleKeyPressed()???? missle = Instance.new("Part") missle.Parent = game.Workspace missle.Size = (size) missle.Anchored = false missle.Position = launcher.CFrame.lookVector * 10 bv = Instance.new("BodyVelocity") bv.velocity = launcer.CFrame.lookVector * missle:GetMass() * force end
SomethingLikeKey.Press:connect(missleKeyPressed)
Ofc, you would have to create a onTouched() function for the newly created missle, but I assume you can do that :D
HOPE THIS HAS HELPED!!11 |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 04 Aug 2011 12:57 PM |
Ah woops, missed out the IF
just slam this in here
if canFire = true then
canFire = false
andddd at the end of my script there, put in wait(delayTime) canFire = true |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 12:59 PM |
| lol this is fine I shouldnt have a prob converting this... thumbs up |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 12:59 PM |
| What about the lock system? SO it locks onto a plane :P That part was easy :P |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Aug 2011 01:06 PM |
Say what? I'm not giving you it :P I have it :P Wanna test it out? |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 01:12 PM |
| Umm...that's what I was referring too. >_< |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Aug 2011 01:15 PM |
*facepalm* no, for testing it, you ninny! (jk) But seriously, I wanna test it. |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Aug 2011 01:21 PM |
crazyman's coding is so complex.
Lolno. Just clean(ish) :3
Regards, ~Scarfacial |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 01:25 PM |
| He likes to complicate things further than it needs to be. |
|
|
| Report Abuse |
|
|