# Set Unit Highlight Cursor
Grammar — Set unit highlight cursor to cursor
Flags —Native
|Action
Sets the highlight cursor for the specified unit.
# Arguments
unit
— Unitstring
<gamelink::Cursor> — Cursor
Returns — void
native void UnitSetCursor(unit inUnit, string cursorLink);
# Related
Category: Unit / Properties
- Unit Type Of Unit —
string
<gamelink::Unit> — UnitGetType - Unit Tag —
int
— UnitGetTag - Unit Seed —
int
— UnitGetSeed - Unit Property Changes —
void
— TriggerAddEventUnitProperty - Triggering Unit Property —
int
<preset::Unit_Property> — EventUnitProperty - Triggering Unit Property Change (Integer) —
int
— EventUnitPropertyChangeInt - Triggering Unit Property Change (Real) —
fixed
— EventUnitPropertyChangeFixed - Set Unit Property —
void
— UnitSetPropertyFixed - Set Unit State —
void
— UnitSetState - Set Unit Seed —
void
— UnitSetSeed - Reset Unit Seed —
void
— UnitResetSeed - Make Unit Invulnerable —
void
— libNtve_gf_MakeUnitInvulnerable - Make Unit Uncommandable —
void
— libNtve_gf_MakeUnitUncommandable - Unit Property —
fixed
— UnitGetPropertyFixed - Unit Property (Int) —
int
— UnitGetPropertyInt - Unit Type Property —
fixed
— UnitTypeGetProperty - Unit Classification Check —
bool
— UnitTestState - Unit Type Classification Check —
bool
— UnitTypeTestFlag - Unit Type Attribute Check —
bool
— UnitTypeTestAttribute - Unit Targetable Check —
bool
— UnitTestPlane - Unit Is Invulnerable —
bool
— libNtve_gf_UnitIsInvulnerable - Unit Kills —
int
— libNtve_gf_UnitGetPropertyKills - Unit Resources —
int
— libNtve_gf_UnitGetPropertyResources - Unit Attachment Point —
point
— UnitGetAttachmentPoint - Name Of Unit Type —
text
— UnitTypeGetName - Gender Code Of Unit Type —
string
— UnitTypeGetGenderCode - Unit Type Cost —
int
— UnitTypeGetCost - Unit Type Is Affected By Upgrade —
bool
— UnitTypeIsAffectedByUpgrade - Reset Movement Speed —
void
— UnitResetSpeed - Unit Uses Mover —
bool
— UnitMoverExists - Unit Type Uses Mover —
bool
— libNtve_gf_UnitMoverExists - Unit Type From String —
string
<gamelink::Unit> — UnitTypeFromString - Set Unit Color —
void
— UnitSetTeamColorIndex - Set Unit Info Button - Ability Tooltip —
void
— libNtve_gf_SetUnitInfoButtonAbilityTooltip - Set Unit Info Button - Button Tooltip —
void
— libNtve_gf_SetUnitInfoButtonButtonTooltip - Set Unit Info Button - Item Tooltip —
void
— libNtve_gf_SetUnitInfoButtonItemTooltip - Reset Unit Info Button - Ability Tooltip —
void
— libNtve_gf_ResetUnitInfoButtonAbilityTooltip - Reset Unit Info Button - Button Tooltip —
void
— libNtve_gf_ResetUnitInfoButtonButtonTooltip - Reset Unit Info Button - Item Tooltip —
void
— libNtve_gf_ResetUnitInfoButtonItemTooltip - Set Unit Command Button Tooltip —
void
— UnitSetInfoButtonTooltip - Reset Unit Command Button Tooltip —
void
— UnitClearInfoButtonTooltip - Set Unit Highlight Cursor —
void
— UnitSetCursor - Set Unit Ping Cursor —
void
— UnitSetPingCursor - Set Unit Info —
void
— UnitSetInfoText - Set Unit Info Text —
void
— UnitSetInfoText2 - Set Unit Info Tip —
void
— UnitSetInfoTip - Set Unit Info SubTip —
void
— UnitSetInfoSubTip - Clear Unit Info —
void
— UnitClearInfoText - Set Unit Status Bar State (Deprecated) —
void
— UnitForceStatusBar - Show Unit Status Bar —
void
— UnitStatusBarOverride - Hide Unit Status Bar —
void
— UnitStatusBarClearOverride - Set Unit Scale —
void
— UnitSetScale - Set Unit Model Variation —
void
— libNtve_gf_UnitSetVariation - Change Unit Height —
void
— UnitSetHeight - Height Of Unit —
fixed
— UnitGetHeight - Change Unit Damage —
void
— libNtve_gf_ChangeUnitDamage - Add On Child —
unit
— UnitAddOnChild - Add On Parent —
unit
— UnitAddOnParent
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2424
auto73C253A6_val = lp_cursorType;
if (auto73C253A6_val == ge_ClickableCursorType_Activate) {
UnitSetCursor(lp_unit, "InteractiveActivate");
}
else if (auto73C253A6_val == ge_ClickableCursorType_Look) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2427
}
else if (auto73C253A6_val == ge_ClickableCursorType_Look) {
UnitSetCursor(lp_unit, "InteractiveLook");
}
else if (auto73C253A6_val == ge_ClickableCursorType_Move) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2430
}
else if (auto73C253A6_val == ge_ClickableCursorType_Move) {
UnitSetCursor(lp_unit, "InteractiveMove");
}
else if (auto73C253A6_val == ge_ClickableCursorType_Talk) {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2433
}
else if (auto73C253A6_val == ge_ClickableCursorType_Talk) {
UnitSetCursor(lp_unit, "InteractiveTalk");
}
else {
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2436
}
else {
UnitSetCursor(lp_unit, "InteractiveActivate");
}
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:2424
auto73C253A6_val = lp_cursorType;
if (auto73C253A6_val == ge_ClickableCursorType_Activate) {
UnitSetCursor(lp_unit, "InteractiveActivate");
}
else if (auto73C253A6_val == ge_ClickableCursorType_Look) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:2427
}
else if (auto73C253A6_val == ge_ClickableCursorType_Look) {
UnitSetCursor(lp_unit, "InteractiveLook");
}
else if (auto73C253A6_val == ge_ClickableCursorType_Move) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:2430
}
else if (auto73C253A6_val == ge_ClickableCursorType_Move) {
UnitSetCursor(lp_unit, "InteractiveMove");
}
else if (auto73C253A6_val == ge_ClickableCursorType_Talk) {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:2433
}
else if (auto73C253A6_val == ge_ClickableCursorType_Talk) {
UnitSetCursor(lp_unit, "InteractiveTalk");
}
else {
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:2436
}
else {
UnitSetCursor(lp_unit, "InteractiveActivate");
}
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7426
if ((libSwaC_gf_ZS_ArmyEvoHasConvo() == true)) {
UnitSetCursor(libSwaC_gv_zS_ArmyCustomEggRoomEvolutionMaster, "InteractiveTalk");
}
else {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7429
}
else {
UnitSetCursor(libSwaC_gv_zS_ArmyCustomEggRoomEvolutionMaster, "InteractiveLook");
}
if ((libSwaC_gf_ZS_ArmyEvoHasConvo2() == true)) {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7750
UnitGroupAdd(libSwaC_gv_zS_ArmyCustomEggUnits, UnitLastCreated());
UnitSetState(UnitLastCreated(), c_unitStateStatusBar, false);
UnitSetCursor(UnitLastCreated(), "InteractiveActivate");
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:8933
UnitSetState(UnitLastCreated(), c_unitStateCursorable, true);
UnitSetState(UnitLastCreated(), c_unitStateHighlightable, true);
UnitSetCursor(UnitLastCreated(), "InteractiveLook");
libSwaC_gf_ZS_ArmyCustomEvolutionApplyRotation(libSwaC_gv_zS_ArmyCustomEvolutionUnitA, lv_armyUnit);
libNtve_gf_SendActorMessageToUnit(UnitLastCreated(), "AnimBlendTimeApply 0.000000");
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:8958
UnitSetState(UnitLastCreated(), c_unitStateCursorable, true);
UnitSetState(UnitLastCreated(), c_unitStateHighlightable, true);
UnitSetCursor(UnitLastCreated(), "InteractiveLook");
libSwaC_gf_ZS_ArmyCustomEvolutionApplyRotation(libSwaC_gv_zS_ArmyCustomEvolutionUnitB, lv_armyUnit);
UnitSetFacing(libSwaC_gv_zS_ArmyCustomEvolutionUnitB, PointGetFacing(lv_offset), 0.0);
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:2633
// Implementation
if ((lp_addRemove == true)) {
UnitSetCursor(lp_unit, "Arrow_Zerg");
UnitGroupAdd(lib281DEC45_gv_zSS_PlanetSetUnits, lp_unit);
UnitGroupAdd(lib281DEC45_gv_zSS_VisibleUnits, lp_unit);
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:4915
}
if ((lib281DEC45_gf_CharacterIsEnabled(lp_character) == false)) {
UnitSetCursor(lib281DEC45_gf_CharacterUnit(lp_character), "Arrow_Zerg");
}
else if ((lib281DEC45_gf_ZSS_CharacterIsBackground(lp_character) == true)) {
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:4918
}
else if ((lib281DEC45_gf_ZSS_CharacterIsBackground(lp_character) == true)) {
UnitSetCursor(lib281DEC45_gf_CharacterUnit(lp_character), "InteractiveLook");
}
else if ((lib281DEC45_gf_ZSS_CharacterIsAmbient(lp_character) == true)) {
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:4921
}
else if ((lib281DEC45_gf_ZSS_CharacterIsAmbient(lp_character) == true)) {
UnitSetCursor(lib281DEC45_gf_CharacterUnit(lp_character), "InteractiveLook");
}
else if (true) {
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:4924
}
else if (true) {
UnitSetCursor(lib281DEC45_gf_CharacterUnit(lp_character), "InteractiveTalk");
}
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4317
if ((libVCST_gf_PS_ClickableIsEnabled(lp_clickableInstance) == false)) {
UnitSetCursor(libVCST_gf_ClickableUnit(lp_clickableInstance), "Arrow_Prot");
}
else if ((libVCST_gf_PS_ClickableIsBackground(lp_clickableInstance) == true)) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4320
}
else if ((libVCST_gf_PS_ClickableIsBackground(lp_clickableInstance) == true)) {
UnitSetCursor(libVCST_gf_ClickableUnit(lp_clickableInstance), "Arrow_Prot");
}
else if ((libVCST_gf_PS_ClickableType(lp_clickableInstance) == libVCST_ge_ClickableType_Ambient)) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4323
}
else if ((libVCST_gf_PS_ClickableType(lp_clickableInstance) == libVCST_ge_ClickableType_Ambient)) {
UnitSetCursor(libVCST_gf_ClickableUnit(lp_clickableInstance), "InteractiveLook");
}
else if ((libVCST_gf_PS_ClickableType(lp_clickableInstance) == libVCST_ge_ClickableType_RoomChange)) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4326
}
else if ((libVCST_gf_PS_ClickableType(lp_clickableInstance) == libVCST_ge_ClickableType_RoomChange)) {
UnitSetCursor(libVCST_gf_ClickableUnit(lp_clickableInstance), "InteractiveActivate");
}
else if ((libVCST_gf_PS_ClickableType(lp_clickableInstance) == libVCST_ge_ClickableType_Custom)) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4329
}
else if ((libVCST_gf_PS_ClickableType(lp_clickableInstance) == libVCST_ge_ClickableType_Custom)) {
UnitSetCursor(libVCST_gf_ClickableUnit(lp_clickableInstance), "InteractiveActivate");
}
else if (true) {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4332
}
else if (true) {
UnitSetCursor(libVCST_gf_ClickableUnit(lp_clickableInstance), "InteractiveTalk");
}
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:3667
if ((libNCST_gf_NS_ClickableIsEnabled(lp_clickableInstance) == false)) {
UnitSetCursor(libNCST_gf_ClickableUnit(lp_clickableInstance), "Arrow_Prot");
}
else if ((libNCST_gf_NS_ClickableIsBackground(lp_clickableInstance) == true)) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:3670
}
else if ((libNCST_gf_NS_ClickableIsBackground(lp_clickableInstance) == true)) {
UnitSetCursor(libNCST_gf_ClickableUnit(lp_clickableInstance), "Arrow_Prot");
}
else if ((libNCST_gf_NS_ClickableType(lp_clickableInstance) == libNCST_ge_ClickableType_Ambient)) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:3673
}
else if ((libNCST_gf_NS_ClickableType(lp_clickableInstance) == libNCST_ge_ClickableType_Ambient)) {
UnitSetCursor(libNCST_gf_ClickableUnit(lp_clickableInstance), "InteractiveLook");
}
else if ((libNCST_gf_NS_ClickableType(lp_clickableInstance) == libNCST_ge_ClickableType_RoomChange)) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:3676
}
else if ((libNCST_gf_NS_ClickableType(lp_clickableInstance) == libNCST_ge_ClickableType_RoomChange)) {
UnitSetCursor(libNCST_gf_ClickableUnit(lp_clickableInstance), "InteractiveActivate");
}
else if ((libNCST_gf_NS_ClickableType(lp_clickableInstance) == libNCST_ge_ClickableType_Custom)) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:3679
}
else if ((libNCST_gf_NS_ClickableType(lp_clickableInstance) == libNCST_ge_ClickableType_Custom)) {
UnitSetCursor(libNCST_gf_ClickableUnit(lp_clickableInstance), "InteractiveActivate");
}
else if (true) {
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:3682
}
else if (true) {
UnitSetCursor(libNCST_gf_ClickableUnit(lp_clickableInstance), "InteractiveTalk");
}
}