Spawn explosion?

Place to get help with not working mods / modding interface.
SilverB1rd
Inserter
Inserter
Posts: 47
Joined: Fri Mar 17, 2017 9:19 pm
Contact:

Spawn explosion?

Post 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??

Post Reply

Return to “Modding help”