It seems you can't create projectile with surface.create_entity() unless you provide it some entity with health to target. Yet quite a few projectiles normally target ground and some others just have a direction and deviations set (when created without scripts).
It'd be nice if we could create projectiles that target position by scripts too.
Less restrictive targets for create_entity with projectiles
Less restrictive targets for create_entity with projectiles
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
-
- Filter Inserter
- Posts: 841
- Joined: Mon Sep 14, 2015 7:40 am
- Contact:
Re: Less restrictive targets for create_entity with projectiles
It is fairly trivial to also create a dummy-target entity with invisible graphics... 

Re: Less restrictive targets for create_entity with projectiles
I do that currently, but it's just silly.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.