Explode()
Trigger explosion enivornment object
Actions
- Triggers OnExplosion Event.
- Plays explosion sound.
- Spawns explosion particle.
- Multi Sphere Trace By Channel to detect players and objects
- Loop through collision bodies and Apply Damage to player's HealthComponent if cast to BP_ThirdPersonCharacter is successful
- Apply damage to environment object using built in "Apply Damage" function if cast to BP_ThirdPersonCharacter fails.
- Check if physics impluse should be used.
- If physics impluse is enabled, and the collision body is simulating physics, the apply upward physics impulse at location of explosion.