# Set Ping Duration

Grammar — Set ping duration to duration seconds
FlagsNative | Action

Sets the duration of the ping, in game-time seconds.

# Arguments

  • int<ping> — Ping
  • fixed — Duration

Returns — void

native void PingSetDuration(int p, fixed duration);

Category: Ping / Advanced

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:3020


    if ((lp_duration != -1)) {
        PingSetDuration(PingLastCreated(), lp_duration);
    }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:3034


    if ((lp_duration != -1)) {
        PingSetDuration(PingLastCreated(), lp_duration);
    }

mods/heroesmapmods/battlegroundmapmods/alteracpass.stormmodbase.stormdata/LibMMAP.galaxy:2337

    libMMAP_gf_CampSoon();
    PingCreateFromDataWithPlayerId(PlayerGroupSingle(libCore_gv_oBSERVER_ObserverUIPlayer), "Defend", libMMAP_gv_aVMechanics[libGame_gv_teamOrderIndex_C].lv_flagSpawnPoint[libMMAP_gv_currentCPIndex], libGame_gf_ComputerPlayerInTeam(libGame_gv_teamOrderIndex_C));
    PingSetDuration(PingLastCreated(), libMMAP_gv_eventTimerWarningDuration_C);
    PingCreateFromDataWithPlayerId(PlayerGroupSingle(libCore_gv_oBSERVER_ObserverUIPlayer), "Attack", libMMAP_gv_aVMechanics[libGame_gv_teamChaosIndex_C].lv_flagSpawnPoint[libMMAP_gv_currentCPIndex], libGame_gf_ComputerPlayerInTeam(libGame_gv_teamChaosIndex_C));
    PingSetDuration(PingLastCreated(), libMMAP_gv_eventTimerWarningDuration_C);

mods/heroesmapmods/battlegroundmapmods/alteracpass.stormmodbase.stormdata/LibMMAP.galaxy:2339

    PingSetDuration(PingLastCreated(), libMMAP_gv_eventTimerWarningDuration_C);
    PingCreateFromDataWithPlayerId(PlayerGroupSingle(libCore_gv_oBSERVER_ObserverUIPlayer), "Attack", libMMAP_gv_aVMechanics[libGame_gv_teamChaosIndex_C].lv_flagSpawnPoint[libMMAP_gv_currentCPIndex], libGame_gf_ComputerPlayerInTeam(libGame_gv_teamChaosIndex_C));
    PingSetDuration(PingLastCreated(), libMMAP_gv_eventTimerWarningDuration_C);
    lv_team = libGame_gv_teamOrderIndex_C;
    for ( ; ( (autoCBDB1CB5_ai >= 0 && lv_team <= autoCBDB1CB5_ae) || (autoCBDB1CB5_ai < 0 && lv_team >= autoCBDB1CB5_ae) ) ; lv_team += autoCBDB1CB5_ai ) {

mods/heroesmapmods/battlegroundmapmods/alteracpass.stormmodbase.stormdata/LibMMAP.galaxy:2347

        ActorSend(libMMAP_gv_aVMechanics[lv_team].lv_flagBirthActor, "TimerSet "+(IntToString(libMMAP_gv_eventTimerWarningDuration_C - 2))+" DestroyTimer");
        PingCreateFromDataWithPlayerId(libGame_gf_PlayersOnTeamHeroes(lv_team, false), "Defend", libMMAP_gv_aVMechanics[lv_team].lv_flagSpawnPoint[libMMAP_gv_currentCPIndex], libGame_gf_ComputerPlayerInTeam(lv_team));
        PingSetDuration(PingLastCreated(), libMMAP_gv_eventTimerWarningDuration_C);
        PingCreateFromDataWithPlayerId(libGame_gf_PlayersOnTeamHeroes(lv_team, false), "Attack", libMMAP_gv_aVMechanics[libGame_gf_EnemyTeam(lv_team)].lv_flagSpawnPoint[libMMAP_gv_currentCPIndex], libGame_gf_ComputerPlayerInTeam(libGame_gf_EnemyTeam(lv_team)));
        PingSetDuration(PingLastCreated(), libMMAP_gv_eventTimerWarningDuration_C);

mods/heroesmapmods/battlegroundmapmods/alteracpass.stormmodbase.stormdata/LibMMAP.galaxy:2349

        PingSetDuration(PingLastCreated(), libMMAP_gv_eventTimerWarningDuration_C);
        PingCreateFromDataWithPlayerId(libGame_gf_PlayersOnTeamHeroes(lv_team, false), "Attack", libMMAP_gv_aVMechanics[libGame_gf_EnemyTeam(lv_team)].lv_flagSpawnPoint[libMMAP_gv_currentCPIndex], libGame_gf_ComputerPlayerInTeam(libGame_gf_EnemyTeam(lv_team)));
        PingSetDuration(PingLastCreated(), libMMAP_gv_eventTimerWarningDuration_C);
        libMMAP_gf_UpdateNotificationCountdownLabel(StringExternal("Param/Value/lib_MMAP_022215B2"), StringExternal("Param/Value/lib_MMAP_B563C334"), 1, libMMAP_gv_eventTimer);
        auto1CF02ECF_ae = libMMAP_gv_defenderCount;

mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmodbase.stormdata/LibVLSK.galaxy:539

    PingCreateFromData(PlayerGroupAll(), "StormAlert", lp_spawnPoint);
    lv_ping = PingLastCreated();
    PingSetDuration(lv_ping, 3.0);
    PingSetUnit(lv_ping, libVLSK_gv_giantRobotUnit);
    return true;