Spawn explosion?
Posted: Mon May 01, 2017 4:16 am
I've been looking for a way to spawn explosions on the map.
I've been able to spawn projectiles like this
However, I'm not looking to launch a projectile, I'd rather just be able to spawn the explosion, something like
is this possible, is there a different type that needs to be spawned??
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}
Code: Select all
surface.create_explosion{name="cluster-genade", position=targetPosition, force=game.forces.enemy}