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/Actions/Enable-Disable Suicide For Unit

From SC2Mapster Wiki
Jump to: navigation, search

AI Actions

Enable/Disable Suicide For Unit


AI - controlled suicide for unit

Galaxy Code

void AISetUnitSuicide ( unit unit, preset controlled )


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.


Additional Information