"item-entity" don't work with projectiles

Place to get help with not working mods / modding interface.
Post Reply
User avatar
DemerNkardaz
Inserter
Inserter
Posts: 21
Joined: Wed Jan 18, 2023 12:32 am
Contact:

"item-entity" don't work with projectiles

Post by DemerNkardaz »

Having some idea to make throwable firt aid kit I was going to make it item, capsule item, projectile and item-entity spawnable from projectile, after that any player can to take it from ground like generic dropped by "Z" first aid kit item. The point is to give the player ability to drop first aid kit on distance to other player, like more "realistic" than heal grenades.
But:
Error while running setup for entity prototype "PLORD_firstaid_kit_projectile" (projectile): Entity ("PLORD_firstaid_kit_e_onground") of type "item-entity" can't be created by "create-entity" trigger effect.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5095
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: "item-entity" don't work with projectiles

Post by Klonan »

You can use a script trigger and create the item-entity yourself

User avatar
DemerNkardaz
Inserter
Inserter
Posts: 21
Joined: Wed Jan 18, 2023 12:32 am
Contact:

Re: "item-entity" don't work with projectiles

Post by DemerNkardaz »

Klonan wrote:
Tue Jan 24, 2023 5:48 pm
You can use a script trigger and create the item-entity yourself
Thanks, will try it

Post Reply

Return to “Modding help”