- Home /
If I duplicate enemies, will their scripts mess each other up?
Like for instance, if there are 2 of the same enemies in the map, and one of them attacks me, will the other attack too? because they have the same scripts on each other, and my guess is if one of the enemies' scripts tells them to attack, then it will do the same for the other.
Answer by FallingRocketGames · May 29, 2018 at 08:27 PM
Yes they will do the same things if you share the same script but you can use that to your advantage if you are creative enough, it's like a car game most of the cars will do the same thing like accelerating breaking or avoiding things but you can play around with tags and layers to make things different
Answer by Unified2000 · May 29, 2018 at 08:29 PM
The new version's script will be reset. So if you was in Unity and I duplicated you then the new you would be a newborn baby. :)