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.
- I want to spawn both health and ammo each time an enemy is killed.
- I want to cap the number of actors that are spawned to 0-4.
- 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.