Page 1 of 1

New function: setObjectFlag(object, flag, value)

Posted: 02 Sep 2017, 17:30
by Per
Added recently is setObjectFlag(object, flag, value) which allows you to set a flag on or off for a game object.

Currently, the only available flag is the new OBJECT_FLAG_UNSELECTABLE which makes the game object unavailable from the UI. This can be used to implement tower defense or MOBA style games, where you own game entities that you cannot control directly, but that can instead be scripted.

You can use the new cheat 'untouchable' to test the new flag.