Less restrictive targets for create_entity with projectiles

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Less restrictive targets for create_entity with projectiles

Post by Adil »

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.
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.
Supercheese
Filter Inserter
Filter Inserter
Posts: 841
Joined: Mon Sep 14, 2015 7:40 am
Contact:

Re: Less restrictive targets for create_entity with projectiles

Post by Supercheese »

It is fairly trivial to also create a dummy-target entity with invisible graphics... :?
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Less restrictive targets for create_entity with projectiles

Post by Adil »

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.
Post Reply

Return to “Implemented mod requests”