Triggers/Functions/Unit Is Script Controlled

From SC2Mapster Wiki
Jump to: navigation, search

AI Function[edit | edit source]

Unit Is Script Controlled[edit | edit source]

GUI[edit | edit source]

AI - unit is script controlled

Galaxy Code[edit | edit source]

bool AIIsScriptControlled ( unit unit )

Description[edit | edit source]

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[edit | edit source]

  • unit unit
    • Name: Unit

Additional Information[edit | edit source]