I am coding some 3d enemies for my game, and they use an Area3d to detect the player and switch from Alert to Idle. The issue is, when I duplicate the Enemy node in the level to have multiple, being in one Area3d somehow activates all of the Areas. As well, it also runs the code for not being in the area, which is causing several issues.
How to separate a duplicated node's code from the original?
Lord_Insomniac Reconnect the signals properly after duplication. Also, if you're not using scenes for enemies - you should.
- Edited
When you duplicate a node that has an attached script, the duplicate will have the same script attached. If you don't want that, you need to detach the script from the node.