# Owner Of Unit

Grammar — Owner of u
FlagsNative | Function

Returns the owner of a unit.

# Arguments

  • unit — Unit

Returns — int

native int UnitGetOwner(unit inUnit);

Category: Unit / Basic

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L258
UnitGetOwner(UnitGroupLoopCurrent())
// L476
UnitGetOwner(EventUnit())
// L750
UnitGetOwner(EventUnit())
// L750
UnitGetOwner(EventUnit())
// L1554
UnitGetOwner(EventUnit())
// L1765
UnitGetOwner(EventUnit())
// L2337
UnitGetOwner(EventUnit())
// L2337
UnitGetOwner(EventUnit())
// L2465
UnitGetOwner(EventUnit())
// L2506
UnitGetOwner(EventUnit())
// L2549
UnitGetOwner(EventUnit())
// L2608
UnitGetOwner(EventUnit())
// L2673
UnitGetOwner(EventUnit())
// L549
UnitGetOwner(EventUnit())
// L787
UnitGetOwner(EventUnit())
// L982
UnitGetOwner(EventUnitProgressUnit())
// L598
UnitGetOwner(EventUnit())
// L603
UnitGetOwner(EventUnit())
// L620
UnitGetOwner(EventUnit())
// L884
UnitGetOwner(EventUnitProgressUnit())
// L916
UnitGetOwner(EventUnit())
// L946
UnitGetOwner(EventUnit())
// L951
UnitGetOwner(EventUnit())
// L968
UnitGetOwner(EventUnit())
// L1584
UnitGetOwner(EventUnit())
// L2183
UnitGetOwner(EventUnit())
// L2183
UnitGetOwner(EventUnit())
// L2310
UnitGetOwner(EventUnit())
// L2350
UnitGetOwner(EventUnit())
// L2391
UnitGetOwner(EventUnit())
// L2449
UnitGetOwner(EventUnit())
// L2514
UnitGetOwner(EventUnit())
// L243
UnitGetOwner(UnitGroupLoopCurrent())
// L465
UnitGetOwner(EventUnit())
// L736
UnitGetOwner(EventUnit())
// L394
UnitGetOwner(UnitGroupLoopCurrent())
// L1671
UnitGetOwner(EventUnit())
// L2292
UnitGetOwner(EventUnit())
// L2292
UnitGetOwner(EventUnit())
// L2431
UnitGetOwner(EventUnit())
// L2483
UnitGetOwner(EventUnit())
// L2536
UnitGetOwner(EventUnit())
// L2594
UnitGetOwner(EventUnit())
// L2659
UnitGetOwner(EventUnit())
// L263
UnitGetOwner(UnitGroupLoopCurrent())
// L462
UnitGetOwner(EventUnit())
// L718
UnitGetOwner(EventUnit())
// L718
UnitGetOwner(EventUnit())
// L1801
UnitGetOwner(gv_boss)
// L2302
UnitGetOwner(gv_boss)
// L2329
UnitGetOwner(gv_boss)
// L2353
UnitGetOwner(gv_boss)
// L2366
UnitGetOwner(gv_boss)
// L5823
UnitGetOwner(gv_boss)
// L5829
UnitGetOwner(gv_boss)
// L5851
UnitGetOwner(gv_boss)
// L5857
UnitGetOwner(gv_boss)
// L7298
UnitGetOwner(EventUnit())
// L1307
UnitGetOwner(EventUnit())
// L1469
UnitGetOwner(EventUnit())
// L1606
UnitGetOwner(EventUnitTargetUnit())
// L1609
UnitGetOwner(EventUnitTargetUnit())
// L1846
UnitGetOwner(EventUnit())
// L2558
UnitGetOwner(EventUnit())
// L2668
UnitGetOwner(EventUnit())
// L2668
UnitGetOwner(EventUnitTarget())
// L2718
UnitGetOwner(EventUnit())
// L2750
UnitGetOwner(EventUnit())
// L280
UnitGetOwner(lp_u)
// L1871
UnitGetOwner(EventUnit())
// L2130
UnitGetOwner(EventUnit())
// L2213
UnitGetOwner(EventUnit())
// L2386
UnitGetOwner(EventUnit())
// L2671
UnitGetOwner(EventUnit())
// L2848
UnitGetOwner(libNtve_gf_KillingUnit())
// L4224
UnitGetOwner(EventUnit())
// L1268
UnitGetOwner(EventUnit())
// L1364
UnitGetOwner(EventUnit())
// L1474
UnitGetOwner(EventUnit())
// L1588
UnitGetOwner(EventUnit())
// L1695
UnitGetOwner(EventUnit())
// L2314
UnitGetOwner(EventUnit())
// L2378
UnitGetOwner(EventUnit())
// L2442
UnitGetOwner(EventUnit())
// L2503
UnitGetOwner(EventUnit())
// L2553
UnitGetOwner(EventUnit())
// L567
UnitGetOwner(lv_overlord)
// L1382
UnitGetOwner(EventUnitTargetUnit())
// L1655
UnitGetOwner(EventUnit())
// L1655
UnitGetOwner(EventUnit())
// L2127
UnitGetOwner(auto97CB6B13_var)
// L2329
UnitGetOwner(EventUnit())
// L2333
UnitGetOwner(EventUnit())
// L2433
UnitGetOwner(EventUnit())
// L3393
UnitGetOwner(libNtve_gf_KillingUnit())
// L3397
UnitGetOwner(EventUnit())
// L426
UnitGetOwner(lp_diamondback)
// L436
UnitGetOwner(lp_diamondback)
// L2371
UnitGetOwner(EventUnit())
// L2488
UnitGetOwner(EventUnit())