New function: setObjectFlag(object, flag, value)

For AI and campaign script related discussions and questions

New function: setObjectFlag(object, flag, value)

Postby Per » 02 Sep 2017, 17:30

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.
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3744
Joined: 03 Aug 2006, 19:39

Return to Scripting