|
I'm trying to set the target of a homing shot after it's spawned when an enemy is hit by ray cast, but it doesn't work and I can't figure out why. It's suppose to set the enemy who's been placed into an Array. Here's the Projectile's script:
(comments are locked)
|
|
Since your Target is a Static var, you do not need to set it in the specific script. You can just do Tell if it's of any help. No change.
Dec 16 '11 at 09:02 PM
Persona
Can you describe me the current behavior of the bullet?
Dec 16 '11 at 11:42 PM
Oninji
The bullets spawn, but they don't move. The rigidbody's force isn't being applied and the target isn't being set.
Dec 17 '11 at 12:22 AM
Persona
(comments are locked)
|
