eseth3
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 109 |
|
|
| 27 Nov 2014 07:16 PM |
Hi does anyone know a way to make a turret? I'm a little stuck trying to find it out. A tutorial or any help would be appreciated. I tried to Google it but no luck. I'm trying to make the turret fire at zombies... More or less I already have the shooting part down. I just need help making it aim at a zombie. |
|
|
| Report Abuse |
|
|
|
| 27 Nov 2014 07:19 PM |
Make the turret. Make it find humanoids Make sure the humanoids are real Make some projectiles Make projectiles change humanoid's health.
Jeebus is the reason for the season |
|
|
| Report Abuse |
|
|
eseth3
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 109 |
|
|
| 27 Nov 2014 07:27 PM |
| I think I should get off the forums for now on.... |
|
|
| Report Abuse |
|
|
eseth3
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 109 |
|
|
| 27 Nov 2014 07:27 PM |
| Opens Door* Leaves* (ノಠ益ಠ)ノ彡┻━┻ |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 27 Nov 2014 07:29 PM |
OMG it's eseth!!! HI I DONT KNOW IF YOU REMEBMER ME IM YOUR BIGGEST FAN |
|
|
| Report Abuse |
|
|
eseth3
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 109 |
|
|
| 27 Nov 2014 07:32 PM |
| Oh.. Hi then I guess? I'm just on here table flipping Yeeea |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 27 Nov 2014 07:34 PM |
| YEAH I CANT BELIEVE YOU DONT REMEMBER ME WE PLAYED HANGOUT AT ROBLOX BEACH THAT ONE TIME AND YOU SAID YOU WOULD ADD ME BUT YOU NEVER DID! |
|
|
| Report Abuse |
|
|
eseth3
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 109 |
|
|
| 27 Nov 2014 07:35 PM |
| Well It's been a very long time since I've been on roblox so yea... ¯\_(ツ)_/¯ I decided to go ahead and try to redesign my game. We should probably stop posting here since it bumps this thread |
|
|
| Report Abuse |
|
|
eseth3
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 109 |
|
|
| 27 Nov 2014 08:01 PM |
Ok I have a turret but I'm having another issue. How would I get the turret to detect groups inside of other groups
Overall it works but when I have 2 zombies grouped together into a group it can't seem to find where the zombies are at.
function findNearestTorso(pos) local list = game.Workspace:GetChildren() -- local longlist = list:GetChildren() local torso = nil local dist = 150 local temp = nil local human = nil local temp2 = nil for x = 1, #list do temp2 = list[x] if (temp2.className == "Model") and (temp2 ~= script.Parent) then temp = temp2:findFirstChild("Torso") human = temp2:findFirstChild("Zombie") if (temp ~= nil) and (human ~= nil) and (human.Health > 0) then if (temp.Position - pos).magnitude < dist then torso = temp dist = (temp.Position - pos).magnitude end end end end return torso end |
|
|
| Report Abuse |
|
|
eseth3
|
  |
| Joined: 13 Mar 2010 |
| Total Posts: 109 |
|
| |
|