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/Events/Unit Owner Changes

From SC2Mapster Wiki
Jump to: navigation, search


Unit Owner Changes


Unit - u owner changes

Galaxy Code

void TriggerAddEventUnitChangeOwner (trigger t,unitref u)


This event fires when the owning player of a unit changes. Use "Triggering Unit" to get the unit, and "Old Unit Owner" and "New Unit Owner" to get the old and new owners.