How do I refer to a specific object/player/enemy/whatever of a level in Lua?
I want to make a map with four rooms, each room having a dummy object at the center (a bush for example), so when I enter that room a function launches making enemies appear around the bush.
Basically I need to get the position of that dummy object but I don't know how.
EDIT: I want to get the XYZ coordinates of the bush so I can add a random number (from -3 to 3, for example) to every coordinate, setting the XYZ coordinates to spawn the enemy
I want to make a map with four rooms, each room having a dummy object at the center (a bush for example), so when I enter that room a function launches making enemies appear around the bush.
Basically I need to get the position of that dummy object but I don't know how.
EDIT: I want to get the XYZ coordinates of the bush so I can add a random number (from -3 to 3, for example) to every coordinate, setting the XYZ coordinates to spawn the enemy
Last edited: