Page 1 of 1

[2.0.43] LuaCommandable.is_script_driven is false despite setting commands by script

Posted: Wed Mar 26, 2025 5:20 pm
by Osmo
Select a unit that is part of a unit group and run the following command. It will print false, despite clearly setting a command.

Code: Select all

/c group = game.player.selected.commandable.parent_group; group.set_command{type=defines.command.go_to_location,destination={0,0}}; game.print(group.is_script_driven)
This is the same by using mods, not just with console. In fact, i was not able to make is_script_driven return true at all in any circumstances.

Re: [2.0.43] LuaCommandable.is_script_driven is false despite setting commands by script

Posted: Wed Mar 26, 2025 7:09 pm
by boskid
This is not a bug. Unit groups that are created using LuaSurface::create_unit_group are ones that are considered is_script_driven.