SC2Mapster Wiki
Advertisement

AI Function[ | ]

Unit Is Script Controlled[ | ]

GUI[ | ]

AI - unit is script controlled

Galaxy Code[ | ]

bool AIIsScriptControlled ( unit unit )

Description[ | ]

Returns true if the unit is being controlled by scripts/triggers instead of by AI. This function only works for units owned by an AI player. Script-controlled units are not used by the AI for attack waves. Units that are issued orders via trigger actions are automatically marked as script-controlled. You can manually mark a unit as script-controlled using the Enable/Disable Script Control trigger actions.

Parameters[ | ]

  • unit unit
    • Name: Unit

Additional Information[ | ]

Advertisement