# MarkerCastingUnit
Flags —
Native
# Arguments
string
— linkunit
— u
Returns — marker
native marker MarkerCastingUnit(string link, unit u);
# Related
Category: Unclassified
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:238
//--------------------------------------------------------------------------------------------------
marker AIMarker (unit aiUnit, string name) {
marker mark = MarkerCastingUnit(name, aiUnit);
MarkerSetMatchFlag(mark, c_markerMatchLink, true);
MarkerSetMatchFlag(mark, c_markerMatchCasterPlayer, true);
mods/starcoop/starcoop.sc2mod — base.sc2data/TriggerLibs/Tactical/TacticalAI.galaxy:238
//--------------------------------------------------------------------------------------------------
marker AIMarker (unit aiUnit, string name) {
marker mark = MarkerCastingUnit(name, aiUnit);
MarkerSetMatchFlag(mark, c_markerMatchLink, true);
MarkerSetMatchFlag(mark, c_markerMatchCasterPlayer, true);