Page 1 of 1

Spawn explosion?

Posted: Mon May 01, 2017 4:16 am
by SilverB1rd
I've been looking for a way to spawn explosions on the map.

I've been able to spawn projectiles like this

Code: Select all

surface.create_entity{name="cluster-genade", position=targetPosition, force=game.forces.enemy, target=target, speed=0.0}
However, I'm not looking to launch a projectile, I'd rather just be able to spawn the explosion, something like

Code: Select all

surface.create_explosion{name="cluster-genade", position=targetPosition, force=game.forces.enemy}
is this possible, is there a different type that needs to be spawned??