Page 1 of 1

[2.0.23] Entity.speed crashes when applied to strafer

Posted: Mon Dec 02, 2024 1:09 pm
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.

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

Posted: Mon Dec 02, 2024 1:20 pm
by Genhis
Thanks for the report, this is not a bug. LuaEntity::speed is not writable for "spider-unit" entity type.