|
I'm making a space sim, and want a script where I could determine the shoot points in the inspector. It ALMOST works. Here's the firing script: It pretty much works, and it shoots in the shoot point. But the second shoot point doesn't work. It shoots at shootPointOne, but it doesn't shoot at shootPointTwo. I don't know why it's not working.
(comments are locked)
|
|
See all those if statements? Put all of that in one if statement. Then, it won't block the ones at the end! It works, but the problem is, whenever I shoot, the starship starts jerking back and forth. Do you know why it's doing this. There is no rigidbody attached, and even when there was it still did this. It's not the shootPoints or the lasers because even after I took out the shoot points, and it didn't shoot anything, then ship jerked back and forth.
Oct 13 '11 at 11:04 PM
Overlord
I only mean the ones to do with shooting. The boost one and all that still have to be separate!
Oct 14 '11 at 03:50 AM
syclamoth
I know that. The boost is in it's own section of if statements, and the shooting is in it's own section. Here's the shooting part now: See. It's in it's own if statement, away from the rest. I still have no idea why it's jerking.
Oct 14 '11 at 04:43 AM
Overlord
Nevermind, it doesn't do that in the build. Thanks.
Oct 31 '11 at 12:29 AM
Overlord
(comments are locked)
|
