New function: setObjectFlag(object, flag, value)

For AI and campaign script related discussions and questions
Post Reply
Per
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 3780
Joined: 03 Aug 2006, 19:39

New function: setObjectFlag(object, flag, value)

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