# Set All States

Grammar — Sets all states for player player to state state
FlagsNative | Action

Sets the value of the state indexes for a player. The state is a per player integer array that can be useful to AI scripting.

# Arguments

  • int — Player
  • int — State

Returns — void

native void AISetAllStates(int player, int state);

Category: AI Advanced / Utility / Actions

# Examples

# mods/core.sc2mod

BaseAI.galaxy

// L164
AISetAllStates(player, 1)
// L199
AISetAllStates(player, 1)