Download

Need some tips on spawning a random number of actors at a location

I’ve created an actor for health, and an actor for ammo. They have a magnetic effect and travel to the player when the player overlaps the collision sphere. My next step is to spawn these two actors at the death location of my AI. The parameters are as follows.

  1. I want to spawn both health and ammo each time an enemy is killed.
  2. I want to cap the number of actors that are spawned to 0-4.
  3. I want to select a random combination of these two actors that would equal the chosen number selected to spawn.

Any suggestions for nodes to look at or the math that might be involved? Any tips would be greatly appreciated. Thanks in advance guys and gals.

This should do it:

Spawn health on T and ammo on F.

You rock dude. Thanks for the quick response. I will check this out and get to work.