Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Triggers/Functions/Unit Is Script Controlled

From SC2Mapster Wiki
Jump to: navigation, search

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