SC2Mapster Wiki
Advertisement

AI Actions[ | ]

Enable/Disable Suicide For Unit[ | ]

GUI[ | ]

AI - controlled suicide for unit

Galaxy Code[ | ]

void AISetUnitSuicide ( unit unit, preset controlled )

Description[ | ]

If suicide is enabled for a unit, the AI will immediately seek out and repeatedly attack the nearest enemy until the suiciding unit is destroyed. Setting a bully to suicide will tag it as missing and cause the AI to rebuild it, since it should not be returning alive.

Parameters[ | ]

  • unit unit
    • Name: Unit
  • preset controlled
    • Preset:Enable/Disable Option
    • Name: Enable/Disable

Additional Information[ | ]

Advertisement