# Share Vision of Unit
Grammar — shareUnshare|Share Vision of unit with Player player
Flags —Action
Shares vision of a unit with another player.
# Arguments
unit
— Unitbool
[ preset::ShareUnshare ] — Share/Unshareint
— Player
Returns — void
void libNtve_gf_ShareVisionofUnit(
unit lp_unit,
bool lp_shareUnshare,
int lp_player,
);
# Related
Category: Unit / Basic
- [F] —
void
— Unit Show Kill Display — ( UnitShowKillDisplay ) - [F] —
bool
— Unit Can Path To Point — ( UnitPathableToPoint ) - [F] —
bool
— Unit Can Path To Unit — ( UnitPathableToUnit ) - [F] —
void
— Create Units With Default Facing — ( libNtve_gf_CreateUnitsWithDefaultFacing ) - [F] —
void
— Create Units With Point Facing — ( libNtve_gf_CreateUnitsAtPoint2 ) - [F] —
unitgroup
— Create Units Facing Angle — ( UnitCreate ) - [F] —
unitgroup
— Create Units Facing Point — ( libNtve_gf_UnitCreateFacingPoint ) - [F] —
unit
— Last Created Unit — ( UnitLastCreated ) - [F] —
unitgroup
— Last Created Units — ( UnitLastCreatedGroup ) - [F] —
unit
— Original Caster Of Unit — ( UnitGetOriginalCaster ) - [F] —
string
[ gamelink::Effect ] — Effect That Created Unit — ( UnitGetOriginalEffect ) - [F] —
void
— Replace Unit — ( libNtve_gf_ReplaceUnit ) - [F] —
unit
— Last Replaced Unit — ( libNtve_gf_LastReplacedUnit ) - [F] —
void
— Change Owner — ( UnitSetOwner ) - [F] —
void
— Unit Owner Changes — ( TriggerAddEventUnitChangeOwner ) - [F] —
int
— Old Unit Owner — ( EventUnitOwnerOld ) - [F] —
int
— New Unit Owner — ( EventUnitOwnerNew ) - [F] —
void
— Rescue Unit — ( libNtve_gf_RescueUnit ) - [F] —
void
— Rescue Unit Group — ( libNtve_gf_RescueUnit2 ) - [F] —
void
— Kill Unit — ( UnitKill ) - [F] —
void
— Revive Unit — ( UnitRevive ) - [F] —
void
— Remove Unit — ( UnitRemove ) - [F] —
int
— Owner Of Unit — ( UnitGetOwner ) - [F] —
bool
— Unit Is Alive — ( UnitIsAlive ) - [F] —
bool
— Unit Is Valid — ( UnitIsValid ) - [F] —
bool
— Unit Group Is Dead — ( libNtve_gf_UnitGroupIsDead ) - [F] —
void
— Move Unit Instantly — ( UnitSetPosition ) - [F] —
void
— Make Unit Face Angle — ( UnitSetFacing ) - [F] —
void
— Make Unit Face Point — ( libNtve_gf_MakeUnitFacePoint ) - [F] —
point
— Position Of Unit — ( UnitGetPosition ) - [F] —
point
— Goal Position Of Unit — ( UnitGetGoalPosition ) - [F] —
fixed
— Facing Angle Of Unit — ( UnitGetFacing ) - [F] —
void
— Pause/Unpause Unit — ( libNtve_gf_PauseUnit ) - [F] —
void
— Pause/Unpause All Units — ( UnitPauseAll ) - [F] —
void
— Sleep/WakeUp Unit — ( libNtve_gf_SleepUnit ) - [F] —
void
— Show/Hide Unit — ( libNtve_gf_ShowHideUnit ) - [F] —
void
— Share Vision of Unit — ( libNtve_gf_ShareVisionofUnit ) - [F] —
bool
— Unit Is Paused — ( libNtve_gf_UnitIsPaused ) - [F] —
bool
— Unit Is Sleepiing — ( libNtve_gf_UnitIsSleepiing ) - [F] —
bool
— Unit Is Hidden — ( libNtve_gf_UnitIsHidden ) - [F] —
bool
— Unit Is Visible To Player — ( libNtve_gf_UnitIsVisibleToPlayer ) - [F] —
void
— Set Unit Custom Value — ( UnitSetCustomValue ) - [F] —
fixed
— Custom Value Of Unit — ( UnitGetCustomValue ) - [F] —
void
— Unit Enters/Leaves Region — ( TriggerAddEventUnitRegion ) - [F] —
region
— Triggering Region — ( EventUnitRegion ) - [F] —
void
— Unit Enters/Leaves Point — ( TriggerAddEventUnitRangePoint ) - [F] —
void
— Unit Enters/Leaves Range Of Unit — ( TriggerAddEventUnitRange ) - [F] —
unit
— Triggering Range Unit — ( EventUnitRangeUnit ) - [F] —
bool
— Unit In Region — ( libNtve_gf_UnitInRegion ) - [F] —
unit
— Triggering Unit — ( EventUnit ) - [F] —
void
— Load Unit Model — ( UnitLoadModel ) - [F] —
void
— Unload Unit Model — ( UnitUnloadModel ) - [F] —
unit
— Agent Of Player For Unit — ( UnitAgent ) - [F] —
void
— Change Empty Unit Variables In Events — ( UnitEventSetNullVariableInvalid ) - [F] —
text
— Name of Unit — ( UnitGetName ) - [F] —
int
— Ideal Harvester Count — ( UnitIdealWorkerCount ) - [F] —
int
— Current Harvester Count — ( UnitCurrentWorkerCount )
# Examples
# campaigns/liberty.sc2campaign
// L167
libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_pLAYER_USER)
// L179
libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_pLAYER_USER)
// L191
libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_pLAYER_USER)
// L878
libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_pLAYER_USER)
// L277
libNtve_gf_ShareVisionofUnit(gv_forceField, true, gv_pLAYER_USER)
// L923
libNtve_gf_ShareVisionofUnit(UnitFromId(2440), true, gv_p1_USER)
// L924
libNtve_gf_ShareVisionofUnit(UnitFromId(2442), true, gv_p1_USER)
// L925
libNtve_gf_ShareVisionofUnit(UnitFromId(2441), true, gv_p1_USER)
// L1488
libNtve_gf_ShareVisionofUnit(UnitFromId(2440), false, gv_p1_USER)
// L1489
libNtve_gf_ShareVisionofUnit(UnitFromId(2442), false, gv_p1_USER)
// L1490
libNtve_gf_ShareVisionofUnit(UnitFromId(2441), false, gv_p1_USER)
// L624
libNtve_gf_ShareVisionofUnit(UnitFromId(318), true, gv_pLAYER01_USER)
// L625
libNtve_gf_ShareVisionofUnit(UnitFromId(3292), true, gv_pLAYER01_USER)
// L626
libNtve_gf_ShareVisionofUnit(UnitFromId(2973), true, gv_pLAYER01_USER)
// L627
libNtve_gf_ShareVisionofUnit(UnitFromId(2629), true, gv_pLAYER01_USER)
// L628
libNtve_gf_ShareVisionofUnit(UnitFromId(2632), true, gv_pLAYER01_USER)
// L718
libNtve_gf_ShareVisionofUnit(autoEA7B3CB7_var, true, gv_pLAYER01_USER)
// L1161
libNtve_gf_ShareVisionofUnit(gv_purifier, true, gv_pLAYER01_USER)
// L2049
libNtve_gf_ShareVisionofUnit(auto567D6800_var, true, gv_pLAYER01_USER)
// L2070
libNtve_gf_ShareVisionofUnit(autoFAAF9A4E_var, false, gv_pLAYER01_USER)
// L2146
libNtve_gf_ShareVisionofUnit(autoDB0C784B_var, true, gv_pLAYER01_USER)
// L312
libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_p01_USER)
// L320
libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_p01_USER)
// L2130
libNtve_gf_ShareVisionofUnit(auto97CB6B13_var, true, gv_p01_USER)
// L1929
libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_pLAYER_01_USER)
// L2301
libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_pLAYER_01_USER)
// L2306
libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_pLAYER_01_USER)
// L4807
libNtve_gf_ShareVisionofUnit(auto896DDD79_var, true, gv_pLAYER_01_USER)
// L4825
libNtve_gf_ShareVisionofUnit(auto1E33317D_var, true, gv_pLAYER_01_USER)
// L4857
libNtve_gf_ShareVisionofUnit(auto306085B8_var, true, gv_pLAYER_01_USER)
// L1037
libNtve_gf_ShareVisionofUnit(UnitFromId(1056), false, gv_p01_USER)
// L1433
libNtve_gf_ShareVisionofUnit(UnitFromId(2), true, gv_p07_DOMINION_STARPORT_B)
// L1607
libNtve_gf_ShareVisionofUnit(UnitFromId(2), false, gv_p07_DOMINION_STARPORT_B)
// L1829
libNtve_gf_ShareVisionofUnit(UnitFromId(2), true, gv_p10_DOMINION_LOKI)
// L1830
libNtve_gf_ShareVisionofUnit(UnitFromId(835), true, gv_p01_USER)
// L2709
libNtve_gf_ShareVisionofUnit(UnitFromId(503), true, gv_p06_DOMINION_STARPORT_A)
// L3132
libNtve_gf_ShareVisionofUnit(UnitFromId(2), true, gv_p07_DOMINION_STARPORT_B)
// L907
libNtve_gf_ShareVisionofUnit(gv_odin, true, gv_p03_DOMINION_SIEGE)
// L908
libNtve_gf_ShareVisionofUnit(gv_odin, true, gv_p04_DOMINION_AIR)
// L909
libNtve_gf_ShareVisionofUnit(gv_odin, true, gv_p05_DOMINION_RAIDER)
// L2618
libNtve_gf_ShareVisionofUnit(gv_odin, true, gv_p01_USER)
// L2577
libNtve_gf_ShareVisionofUnit(auto8A7E80E5_var, true, gv_p1_USER)
// L1963
libNtve_gf_ShareVisionofUnit(auto3AF44449_var, true, gv_pLAYER01_USER)
// L2041
libNtve_gf_ShareVisionofUnit(auto438DA7F7_var, true, gv_pLAYER01_USER)
// L2130
libNtve_gf_ShareVisionofUnit(auto5D91C950_var, true, gv_pLAYER01_USER)
// L2353
libNtve_gf_ShareVisionofUnit(autoC03B76C5_var, true, gv_p01_USER)
// L2432
libNtve_gf_ShareVisionofUnit(auto20B79E52_var, true, gv_p01_USER)
// L2511
libNtve_gf_ShareVisionofUnit(autoE81781EA_var, true, gv_p01_USER)
// L2590
libNtve_gf_ShareVisionofUnit(autoFD3BFCD1_var, true, gv_p01_USER)
// L2669
libNtve_gf_ShareVisionofUnit(autoC926F1D5_var, true, gv_p01_USER)
// L3296
libNtve_gf_ShareVisionofUnit(auto59E65917_var, true, gv_p01_USER)
// L994
libNtve_gf_ShareVisionofUnit(UnitFromId(34), true, gv_p1_USER)
// L1120
libNtve_gf_ShareVisionofUnit(auto94E85CCA_var, true, gv_p1_USER)
// L1121
libNtve_gf_ShareVisionofUnit(auto94E85CCA_var, true, gv_p2_PROTOSS_EAST_ATTACKERS)
// L1122
libNtve_gf_ShareVisionofUnit(auto94E85CCA_var, true, gv_p3_PROTOSS_SCRIPTED)
// L1131
libNtve_gf_ShareVisionofUnit(auto1F379FE0_var, true, gv_p1_USER)
// L1132
libNtve_gf_ShareVisionofUnit(auto1F379FE0_var, true, gv_p2_PROTOSS_EAST_ATTACKERS)
// L1133
libNtve_gf_ShareVisionofUnit(auto1F379FE0_var, true, gv_p3_PROTOSS_SCRIPTED)
// L1143
libNtve_gf_ShareVisionofUnit(autoF1607772_var, true, gv_p1_USER)
// L1144
libNtve_gf_ShareVisionofUnit(autoF1607772_var, true, gv_p2_PROTOSS_EAST_ATTACKERS)
// L1145
libNtve_gf_ShareVisionofUnit(autoF1607772_var, true, gv_p3_PROTOSS_SCRIPTED)
// L4188
libNtve_gf_ShareVisionofUnit(UnitFromId(1070), true, gv_pLAYER01_USER)
// L1861
libNtve_gf_ShareVisionofUnit(autoDC337D76_var, true, gv_p1_USER)
// L847
libNtve_gf_ShareVisionofUnit(UnitFromId(520), true, gv_p1_USER)
// L848
libNtve_gf_ShareVisionofUnit(UnitFromId(507), true, gv_p1_USER)
// L849
libNtve_gf_ShareVisionofUnit(UnitFromId(448), true, gv_p1_USER)
// L850
libNtve_gf_ShareVisionofUnit(UnitFromId(550), true, gv_p1_USER)
// L856
libNtve_gf_ShareVisionofUnit(auto41FF063F_var, true, gv_p1_USER)
// L1213
libNtve_gf_ShareVisionofUnit(auto7A510927_var, true, gv_p1_USER)
// L5177
libNtve_gf_ShareVisionofUnit(gv_tHEONEDOOR, true, gv_p7_ABANDONED_BASE)
// L5403
libNtve_gf_ShareVisionofUnit(gv_tHEONEDOOR, true, gv_p1_USER)
// L5404
libNtve_gf_ShareVisionofUnit(gv_tHEONEDOOR, true, UnitGetOwner(gv_tHEONEDRILL))
// L1393
libNtve_gf_ShareVisionofUnit(lv_nydus, true, gv_p01_USER)
// L3170
libNtve_gf_ShareVisionofUnit(gv_uNITSite1Speaker, true, gv_p01_USER)
// L3235
libNtve_gf_ShareVisionofUnit(gv_uNITSite1Speaker, true, gv_p01_USER)
// L3355
libNtve_gf_ShareVisionofUnit(gv_uNITWallSpeaker, true, gv_p01_USER)
// L3475
libNtve_gf_ShareVisionofUnit(gv_uNITSite2Speaker, true, gv_p01_USER)
// L3592
libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_p01_USER)
// L3719
libNtve_gf_ShareVisionofUnit(gv_uNITSite3Speaker, true, gv_p01_USER)
// L5129
libNtve_gf_ShareVisionofUnit(UnitFromId(1178), true, gv_p01_USER)
// L952
libNtve_gf_ShareVisionofUnit(UnitFromId(420), true, gv_pLAYER01_USER)
// L955
libNtve_gf_ShareVisionofUnit(UnitFromId(4), true, gv_pLAYER01_USER)
// L1030
libNtve_gf_ShareVisionofUnit(gv_wALLOFFIRE, true, gv_pLAYER01_USER)
// L1333
libNtve_gf_ShareVisionofUnit(auto0C23000F_var, true, gv_pLAYER01_USER)
// L2334
libNtve_gf_ShareVisionofUnit(gv_uNITDaMothership, true, gv_pLAYER_01_USER)
// L2828
libNtve_gf_ShareVisionofUnit(auto0E026239_var, true, gv_pLAYER_01_USER)
// L2835
libNtve_gf_ShareVisionofUnit(auto20811A7C_var, true, gv_pLAYER_01_USER)
// L1688
libNtve_gf_ShareVisionofUnit(auto3A0E8422_var, true, gv_p1_USER)
// L1989
libNtve_gf_ShareVisionofUnit(auto28DE67CB_var, true, gv_p1_USER)
// L2548
libNtve_gf_ShareVisionofUnit(auto65286A2F_var, true, gv_p1_USER)
// L3177
libNtve_gf_ShareVisionofUnit(EventUnit(), true, gv_p1_USER)
// L3777
libNtve_gf_ShareVisionofUnit(auto58AEE19B_var, true, gv_p1_USER)
// L4085
libNtve_gf_ShareVisionofUnit(auto76593110_var, true, gv_p1_USER)
// L4234
libNtve_gf_ShareVisionofUnit(auto4AD1C232_var, true, gv_p1_USER)
// L4333
libNtve_gf_ShareVisionofUnit(autoAFC6B12B_var, false, gv_p1_USER)
// L4340
libNtve_gf_ShareVisionofUnit(auto6F0D6B8D_var, false, gv_p1_USER)
// L4583
libNtve_gf_ShareVisionofUnit(auto409E0102_var, true, gv_p1_USER)
// L1170
libNtve_gf_ShareVisionofUnit(UnitLastCreated(), true, gv_pLAYER_P01_USER)
// L4084
libNtve_gf_ShareVisionofUnit(UnitFromId(108), true, gv_pLAYER_P01_USER)
// L4090
libNtve_gf_ShareVisionofUnit(UnitFromId(90), true, gv_pLAYER_P01_USER)