# Set Tint Color

Grammar — Set Tint Color color with HDR hdr|Multiplier over duration seconds
FlagsFunction

Constructs and returns a SetLocalTintColor actor message based on the parameters. This will set an actors tint color for all players. This will only work on actor’s with a model.

# Arguments

  • color — Color
  • fixed — HDR
  • fixed — Duration

Returns — string<actormsg>

string libNtve_gf_SetTintColor(
	color lp_color,
	fixed lp_hdr,
	fixed lp_duration,
);

Category: Actor / Message Constructors

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map/MapScript.galaxy:357

    libNtve_gf_CreateModelAtPoint("FogMist", lp_location);
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetScale(1.5, 1.5, 1.5, 0.0));
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetTintColor(Color(100.00, 50.20, 25.10), 1.5, 0.0));
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetOpacity(0.0, 0.0));
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetOpacity(1.0, 5.0));

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2map/MapScript.galaxy:396

        lv_hDR += 0.2;
        lv_speed -= 0.4;
        libNtve_gf_SendActorMessageToUnit(lp_ultralisk, libNtve_gf_SetTintColor(Color(100.0, 50.0, 25.0), lv_hDR, 1.0));
        Wait(0.3, c_timeGame);
        UnitSetPropertyFixed(lp_ultralisk, c_unitPropMovementSpeed, lv_speed);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2mapMapScript.galaxy:357

    libNtve_gf_CreateModelAtPoint("FogMist", lp_location);
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetScale(1.5, 1.5, 1.5, 0.0));
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetTintColor(Color(100.00, 50.20, 25.10), 1.5, 0.0));
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetOpacity(0.0, 0.0));
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetOpacity(1.0, 5.0));

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionultralisk.sc2mapMapScript.galaxy:396

        lv_hDR += 0.2;
        lv_speed -= 0.4;
        libNtve_gf_SendActorMessageToUnit(lp_ultralisk, libNtve_gf_SetTintColor(Color(100.0, 50.0, 25.0), lv_hDR, 1.0));
        Wait(0.3, c_timeGame);
        UnitSetPropertyFixed(lp_ultralisk, c_unitPropMovementSpeed, lv_speed);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:463

    gv_bonusObjectiveRescueRegions[2] = RegionFromId(4);
    gv_bonusObjectiveRescueRegions[3] = RegionFromId(5);
    ActorSend(libNtve_gf_MainActorofUnit(UnitFromId(72)), libNtve_gf_SetTintColor(Color(0.00, 0.00, 100.00), 1.0, 0.0));
    ActorSend(libNtve_gf_MainActorofUnit(UnitFromId(72)), libNtve_gf_SetScale(0.3, 1.0, 1.0, 0.0));
    UnitGroupLoopBegin(UnitGroup(UnitGetType(UnitFromId(11)), c_playerAny, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:469

        libNtve_gf_MakeUnitInvulnerable(UnitGroupLoopCurrent(), true);
        ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetOpacity(0.75, 0));
        ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(0.00, 0.00, 100.00), 1.0, 0.0));
    }
    UnitGroupLoopEnd();

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:475

    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((UnitGetOwner(UnitGroupLoopCurrent()) == gv_pLAYER_01_USER)) {
            ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(0.00, 0.00, 100.00), 1.0, 0.0));
        }
        else {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:479

        else {
            if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
                ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(100.00, 0.00, 0.00), 1.0, 0.0));
            }
            else {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:483

            else {
                if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Neutral) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                    ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(100.00, 100.00, 0.00), 1.0, 0.0));
                }
                else {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:487

                else {
                    if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                        ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(0.00, 100.00, 0.00), 1.0, 0.0));
                    }
                    else {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:871


    if ((EventUnitOwnerNew() == gv_pLAYER_01_USER)) {
        ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(0.00, 0.00, 100.00), 1.0, 0.0));
    }
    else {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:875

    else {
        if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
            ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(100.00, 0.00, 0.00), 1.0, 0.0));
        }
        else {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:879

        else {
            if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Neutral) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(100.00, 100.00, 0.00), 1.0, 0.0));
            }
            else {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:883

            else {
                if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                    ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(0.00, 100.00, 0.00), 1.0, 0.0));
                }
                else {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:463

    gv_bonusObjectiveRescueRegions[2] = RegionFromId(4);
    gv_bonusObjectiveRescueRegions[3] = RegionFromId(5);
    ActorSend(libNtve_gf_MainActorofUnit(UnitFromId(72)), libNtve_gf_SetTintColor(Color(0.00, 0.00, 100.00), 1.0, 0.0));
    ActorSend(libNtve_gf_MainActorofUnit(UnitFromId(72)), libNtve_gf_SetScale(0.3, 1.0, 1.0, 0.0));
    UnitGroupLoopBegin(UnitGroup(UnitGetType(UnitFromId(11)), c_playerAny, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0));

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:469

        libNtve_gf_MakeUnitInvulnerable(UnitGroupLoopCurrent(), true);
        ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetOpacity(0.75, 0));
        ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(0.00, 0.00, 100.00), 1.0, 0.0));
    }
    UnitGroupLoopEnd();

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:475

    for ( ; !UnitGroupLoopDone() ; UnitGroupLoopStep() ) {
        if ((UnitGetOwner(UnitGroupLoopCurrent()) == gv_pLAYER_01_USER)) {
            ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(0.00, 0.00, 100.00), 1.0, 0.0));
        }
        else {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:479

        else {
            if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
                ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(100.00, 0.00, 0.00), 1.0, 0.0));
            }
            else {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:483

            else {
                if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Neutral) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                    ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(100.00, 100.00, 0.00), 1.0, 0.0));
                }
                else {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:487

                else {
                    if (((libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true) || (libNtve_gf_PlayerIsEnemy(UnitGetOwner(UnitGroupLoopCurrent()), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                        ActorSend(libNtve_gf_MainActorofUnit(UnitGroupLoopCurrent()), libNtve_gf_SetTintColor(Color(0.00, 100.00, 0.00), 1.0, 0.0));
                    }
                    else {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:871


    if ((EventUnitOwnerNew() == gv_pLAYER_01_USER)) {
        ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(0.00, 0.00, 100.00), 1.0, 0.0));
    }
    else {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:875

    else {
        if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Enemy) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_EnemyMutual) == true))) {
            ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(100.00, 0.00, 0.00), 1.0, 0.0));
        }
        else {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:879

        else {
            if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Neutral) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(100.00, 100.00, 0.00), 1.0, 0.0));
            }
            else {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2mapMapScript.galaxy:883

            else {
                if (((libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_Ally) == true) || (libNtve_gf_PlayerIsEnemy(EventUnitOwnerNew(), gv_pLAYER_01_USER, libNtve_ge_PlayerRelation_NeutralMutual) == true))) {
                    ActorSend(libNtve_gf_MainActorofUnit(EventUnit()), libNtve_gf_SetTintColor(Color(0.00, 100.00, 0.00), 1.0, 0.0));
                }
                else {