How can I detect the monster position

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DarlesLSF

Hello all, I’m creating a monster spawner and I want to know how can I detect the position of the previously monster spawned, just for not spawn another monster near or above it?

most base nodes have a position variable, so you should be able to reference it in whatever script you need to.

I’m not sure exactly what effect you are trying to reach, could you explain it further?

Millard | 2020-06-25 16:33

:bust_in_silhouette: Reply From: jgodfrey

Without more details (and maybe some relevant code) it’s hard to offer much specific advice. However, if you really just want to know the position of the previously spawned monster, why not simply store the position as you spawn a monster and then use it as reference when you spawn the next monster?