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

Bugs that are actually features.
Osmo
Fast Inserter
Fast Inserter
Posts: 100
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

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

Post 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.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4044
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

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

Post 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.
Post Reply

Return to “Not a bug”