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:
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.
answered Dec 13 '11 at 06:17 PM