surface.create_entity{name = "grenade",... doesn't work?

Place to get help with not working mods / modding interface.
Post Reply
yagaodirac
Fast Inserter
Fast Inserter
Posts: 152
Joined: Sun Jun 16, 2019 4:04 pm
Contact:

surface.create_entity{name = "grenade",... doesn't work?

Post by yagaodirac »

When I throw a grenade, the surface.find_entities returns me a table with some entity named grenade. When I tried to create it from code, even if I specified the target, it still refused to work. The error info pointed out that a speed field is not specified, but I found no clue about it.
Any idea? How can I create a grenade entity?

Post Reply

Return to “Modding help”