# Set Player Spray

Grammar — Set Player player’s spray index to spray.
FlagsNative | Action

Sets the mount of the specified player.

# Arguments

  • int — Player
  • int — Index
  • string<gamelink::Spray> — Spray

Returns — void

native void PlayerSetSpray(
	int player,
	int index,
	string spray,
);

Category: Player / Player Settings

# Examples

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

        else {
            libCore_gf_DataLootContentLoadSprayDataIntoIndex(lv_sprayLink, lv_itPlayer);
            PlayerSetSpray(lv_itPlayer, lv_sprayLink);
        }
        lv_bannerLink = PlayerBanner(lv_itPlayer);

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

    lv_sprayLink = (DataTableGetString(true, ("SprayIndex_" + IntToString(lv_randomChoice))));
    libCore_gf_DataLootContentLoadSprayDataIntoIndex(lv_sprayLink, lp_choosingPlayer);
    PlayerSetSpray(lp_choosingPlayer, lv_sprayLink);
}