# Ref Set

Grammar — RefSet actorRefName refSource
FlagsFunction

Constructs and returns a RefSet actor message based on the parameters. This message will store an actor determined by the Ref Source parameter, into an existing actor reference determined by the Actor Ref Name parameter. Note: This will only set a value in an actor reference that already exists, it will not create a new reference.

# Arguments

  • string — Actor Ref Name
  • string — Ref Source

Returns — string<actormsg>

string libNtve_gf_RefSet(
	string lp_actorRefName,
	string lp_refSource,
);

Category: Actor / Message Constructors

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18602

        libCore_gf_SendMountActorMessagesToActor(lv_mountIndex, lv_mountActor);
        if ((libGame_gv_players[lv_heroIndex].lv_heroData.lv_isFlyer == true)) {
            ActorSend(lv_mountActor, libNtve_gf_RefSet("::Host", "FlyerBillboard"));
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18611

        }

        ActorSend(lv_heroActor, libNtve_gf_RefSet("::Host", lv_actorNameForMount));
        ActorSend(lv_heroActor, libNtve_gf_HostSiteOpsSet("::Host", "SOpAttachMount", 0, 0));
        ActorSend(lv_heroActor, libNtve_gf_RefSet("::HostForProps", "PropsHost"));

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18613

        ActorSend(lv_heroActor, libNtve_gf_RefSet("::Host", lv_actorNameForMount));
        ActorSend(lv_heroActor, libNtve_gf_HostSiteOpsSet("::Host", "SOpAttachMount", 0, 0));
        ActorSend(lv_heroActor, libNtve_gf_RefSet("::HostForProps", "PropsHost"));
        ActorSend(lv_mountActor, libNtve_gf_RefSet("::HostForProps", (lv_mountingUnitType)));
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameLib.galaxy:18614

        ActorSend(lv_heroActor, libNtve_gf_HostSiteOpsSet("::Host", "SOpAttachMount", 0, 0));
        ActorSend(lv_heroActor, libNtve_gf_RefSet("::HostForProps", "PropsHost"));
        ActorSend(lv_mountActor, libNtve_gf_RefSet("::HostForProps", (lv_mountingUnitType)));
    }
    else {