Allow LuaEntity.speed to read/change speed for projectiles

calcwizard
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sat Apr 20, 2019 6:30 am
Contact:

Allow LuaEntity.speed to read/change speed for projectiles

Post by calcwizard »

Please allow the speed of a projectile entity to be read and written during control, preferably through LuaEntity.speed or a similar method.
I would like to set the speed of an artillery projectile after being fired (through on_trigger_fired_artillery). Their speed can be set when created through LuaSurface.create_entity, but it requires a target entity (artillery flare), which can be expensive to find with the range of artillery. Some projectiles don't even have target entities (like grenades).

Thanks.
Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Allow LuaEntity.speed to read/change speed for projectiles

Post by Bilka »

This was added for the next version.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
calcwizard
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sat Apr 20, 2019 6:30 am
Contact:

Re: Allow LuaEntity.speed to read/change speed for projectiles

Post by calcwizard »

Thanks.
Post Reply

Return to “Implemented mod requests”