# Set Unit Highlight Cursor

Grammar — Set unit highlight cursor to cursor
FlagsNative | Action

Sets the highlight cursor for the specified unit.

# Arguments

  • unit — Unit
  • string<gamelink::Cursor> — Cursor

Returns — void

native void UnitSetCursor(unit inUnit, string cursorLink);

Category: Unit / Properties

# Examples

campaigns/liberty.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2433

    }
    else if (auto73C253A6_val == ge_ClickableCursorType_Talk) {
        UnitSetCursor(lp_unit, "InteractiveTalk");
    }
    else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2436

    }
    else {
        UnitSetCursor(lp_unit, "InteractiveActivate");
    }
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.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.sc2mapMapScript.galaxy:2433

    }
    else if (auto73C253A6_val == ge_ClickableCursorType_Talk) {
        UnitSetCursor(lp_unit, "InteractiveTalk");
    }
    else {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:2436

    }
    else {
        UnitSetCursor(lp_unit, "InteractiveActivate");
    }
}

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7426


    if ((libSwaC_gf_ZS_ArmyEvoHasConvo() == true)) {
        UnitSetCursor(libSwaC_gv_zS_ArmyCustomEggRoomEvolutionMaster, "InteractiveTalk");
    }
    else {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7429

    }
    else {
        UnitSetCursor(libSwaC_gv_zS_ArmyCustomEggRoomEvolutionMaster, "InteractiveLook");
    }
    if ((libSwaC_gf_ZS_ArmyEvoHasConvo2() == true)) {

campaigns/swarmstory.sc2campaignbase.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:7750

        UnitGroupAdd(libSwaC_gv_zS_ArmyCustomEggUnits, UnitLastCreated());
        UnitSetState(UnitLastCreated(), c_unitStateStatusBar, false);
        UnitSetCursor(UnitLastCreated(), "InteractiveActivate");
    }

campaigns/swarmstory.sc2campaignbase.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.sc2campaignbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.sc2data/Lib281DEC45.galaxy:4924

    }
    else if (true) {
        UnitSetCursor(lib281DEC45_gf_CharacterUnit(lp_character), "InteractiveTalk");
    }
}

campaigns/voidstory.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:4332

    }
    else if (true) {
        UnitSetCursor(libVCST_gf_ClickableUnit(lp_clickableInstance), "InteractiveTalk");
    }
}

mods/missionpacks/novacampaign.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.sc2data/LibNCST.galaxy:3682

    }
    else if (true) {
        UnitSetCursor(libNCST_gf_ClickableUnit(lp_clickableInstance), "InteractiveTalk");
    }
}