I have a ship and it creates an antenna that couples the ship, after a few seconds the system creates one more ship (same object as the first ship) and that second ship creates another antenna that couples the second ship. is there a way to get the antenna id of the first and second ship?
Develop games in your browser. Powerful, performant & highly capable.
Do you mean to get the data and use it in code or simply view it? In debug mode you can see the ID of the objects. Also think about putting the ship and antenna in a 'container' where you can create them as one object.
If you pin them together and they are not in a container, you can use PinnedUID
To pick Ship: "Ship -> Pick by unique ID=Antenna.Pin.PinnedUID"
To pick Antenna: "System-> pick by comparison Antenna where Antenna.Pin.PinnedUID=Ship.UID"
dop2000
in the game more ships will respawn in some minuts. how can pick the pin id from every antenna?
rafaelsorgato
Maybe use "For each antenna" loop?