- Home /
 
Changing the shoot angle on one robot changes all of the other robots' variables?
When I created my first robot I made duplicates to create the others.(There are 7 total) So when I attempt to change a variable like shoot angle( say to 3) it changes all of the other robots in the scene to 3. Does anybody know how to fix this? Do I need separate AI scripts for each of the robots? If I do need others scripts would you please give me a javascript that I need to add to the stock AI script that comes with UNITY.
Thanx Troy
it would be very helpful to see how you're scripting this. Are you only using one script to control all the objects? or are there scripts on each of them?
Answer by Daniel Girgis · Feb 06, 2011 at 10:48 AM
u could just tag them Robot 1 Robot 2 Robot 3 or make new prefabs 1 for each and name them slightly diffrent
Your answer
 
             Follow this Question
Related Questions
Shoot Script Help 1 Answer
Creating Dropdown menue for variables in the Inspector using C# 1 Answer
Accessing Other Script Variables (C#) 2 Answers
RayCast "blueline" qoes down 1 Answer
simple shooting script help 3 Answers