#Randomizing custom enemies position

1 messages · Page 1 of 1 (latest)

potent musk
#

While making ReMAM rebalanced, I have a idea for a mod to randomize any enemy position.

How can I make any custom enemies appear in different position?

zealous kettle
#

@fathom folio

fathom folio
#

You can specify positions in the spawnEntity command spawnEntity("entity": "luaSaucer", "x": 800, "y": 240);

potent musk
fathom folio
#

Ah, we've added spawnEntityRandom that takes minX, maxX, minY and maxY instead of x and y

#

It does adjust the X position to widescreen I just saw, which.. I'm not sure we actually want on this

fathom folio
#

You call it with a specific entity and give it a range of values. Then it simply spawns that entity on a random point within the rectangle your values specify

potent musk
#

I got it now. thanks.