Randomly Spawned Actor Game Logic

I have a game that I randomly spawn actors actors all across a scene. I have a rule when my main actor collides with any of these spawned actors. Is there a way I can randomly spawn an actor and then make sure another actor type is spawned in front/around this randomly spawned actor. Basically I want to play a sound when the main character gets close gets close to the randomly spawned actor. If the actor always spawned in the same place than I could manually add another actor around actor that could produce this sound when collided with. I spawn my actors randomly in 5 levels so the levels will never be the same. Any one have an idea of how I might go about this?

Comments

  • -Timo--Timo- Member Posts: 2,313
    I'm not sure what you exactly want... you want an other actor be spawned on the actor that is spawning random? if this is what you want just say in the actor that is spawning randomly, spawn actor 'actor that should make a sound'
  • dimps620dimps620 Member Posts: 49
    I need to spawn a new actor based on the location of a randomly spawned actor. Is that possible?
Sign In or Register to comment.