# Set Ping Duration
Grammar — Set ping duration to duration seconds
Flags —Native
|Action
Sets the duration of the ping, in game-time seconds.
# Arguments
int
<ping> — Pingfixed
— Duration
Returns — void
native void PingSetDuration(int p, fixed duration);
# Related
Category: Ping / Advanced
- Move Ping —
void
— PingSetPosition - Make Ping Face Angle —
void
— PingSetRotation - Attach Ping To Unit —
void
— PingSetUnit - Position Of Ping —
point
— PingGetPosition - Facing Angle Of Ping —
fixed
— PingGetRotation - Ping Unit —
unit
— PingGetUnit - Set Ping Scale —
void
— PingSetScale - Set Ping Depth —
void
— PingSetDepth - Set Ping Tooltip —
void
— PingSetTooltip - Set Ping Color —
void
— PingSetColor - Set Ping Duration —
void
— PingSetDuration - Set Ping Model —
void
— PingSetModel - Set Ping Players —
void
— PingSetPlayerGroup - Set Ping Use Unit Team Color —
void
— PingSetUseUnitTeamColor - Set Ping Use Unit Visibility —
void
— PingSetUseUnitVisibility - Set Ping Observer Display —
void
— PingSetObserver - Set Ping Use Player Vision —
void
— PingSetUsePlayerVision - Destroy Ping —
void
— PingDestroy - Destroy All Pings —
void
— PingDestroyAll - Ping Scale —
fixed
— PingGetScale - Ping Depth —
fixed
— PingGetDepth - Ping Tooltip —
text
— PingGetTooltip - Color Of Ping —
color
— PingGetColor - Duration of Ping —
fixed
— PingGetDuration - Ping Players —
playergroup
— PingGetPlayerGroup
# Examples
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:3020
if ((lp_duration != -1)) {
PingSetDuration(PingLastCreated(), lp_duration);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/HeroesLib.galaxy:3034
if ((lp_duration != -1)) {
PingSetDuration(PingLastCreated(), lp_duration);
}
mods/heroesmapmods/battlegroundmapmods/alteracpass.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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;