Spawn a actor in random locations in the spawner

Hi guys,

Im trying to make an actor spawn randomly in different locations inside a spawner,

This is the code i have now:

Spawn actor: actor place: in front of actor

In the direction: 0 relative to: actor

from position: random(0, self.position.x), random(0, self.position.y)

relative to: actor

The problem i have being facing is that the actor spawns randomly on the right side of the spawner and spawns nothing on the left. What can i change in my code that it spawns on the left side to.

Greetings Nihat

Comments

Sign In or Register to comment.