# Spray Of Player

Grammar — Spray sprayIndex|Index of player p
FlagsNative | Function

Returns the chosen spray at the specified index for the player.

# Arguments

  • int — Player
  • int — Spray Index

Returns — string<gamelink::Spray>

native string PlayerSpray(int p, int sprayIndex);

Category: Player / Player Settings

# Examples

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

        }

        lv_sprayLink = PlayerSpray(lv_itPlayer);
        if ((lv_sprayLink == "RandomSpray")) {
            libGame_gf_HeroSelectionRandomlyPickSpray(lv_itPlayer);