[2.0.23] Entity.speed crashes when applied to strafer

Bugs that are actually features.
User avatar
Zymoran
Inserter
Inserter
Posts: 21
Joined: Mon Nov 04, 2024 5:26 pm
Contact:

[2.0.23] Entity.speed crashes when applied to strafer

Post by Zymoran »

Code: Select all

group = surface.create_unit_group {position = {off, -256}, force = enemy}
ocal entity = create_entity {name = "small-strafer-pentapod", position = {off, -256}, force = enemy}
--entity.speed = 0.15
uncomment "entity.speed" line, and the code crashes (see attached message). I don't know if it is intended not to work for new SA units. It would be nice if editing the speed would apply to the new units in the same way as biters.
Attachments
error message.png
error message.png (68.46 KiB) Viewed 74 times
Genhis
Factorio Staff
Factorio Staff
Posts: 694
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [2.0.23] Entity.speed crashes when applied to strafer

Post by Genhis »

Thanks for the report, this is not a bug. LuaEntity::speed is not writable for "spider-unit" entity type.
Post Reply

Return to “Not a bug”