# 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
- [F] —
void
— Move Ping — ( PingSetPosition ) - [F] —
void
— Make Ping Face Angle — ( PingSetRotation ) - [F] —
void
— Attach Ping To Unit — ( PingSetUnit ) - [F] —
point
— Position Of Ping — ( PingGetPosition ) - [F] —
fixed
— Facing Angle Of Ping — ( PingGetRotation ) - [F] —
unit
— Ping Unit — ( PingGetUnit ) - [F] —
void
— Set Ping Scale — ( PingSetScale ) - [F] —
void
— Set Ping Depth — ( PingSetDepth ) - [F] —
void
— Set Ping Tooltip — ( PingSetTooltip ) - [F] —
void
— Set Ping Color — ( PingSetColor ) - [F] —
void
— Set Ping Duration — ( PingSetDuration ) - [F] —
void
— Set Ping Model — ( PingSetModel ) - [F] —
void
— Set Ping Players — ( PingSetPlayerGroup ) - [F] —
void
— Set Ping Use Unit Team Color — ( PingSetUseUnitTeamColor ) - [F] —
void
— Set Ping Use Unit Visibility — ( PingSetUseUnitVisibility ) - [F] —
void
— Set Ping Observer Display — ( PingSetObserver ) - [F] —
void
— Set Ping Use Player Vision — ( PingSetUsePlayerVision ) - [F] —
void
— Destroy Ping — ( PingDestroy ) - [F] —
void
— Destroy All Pings — ( PingDestroyAll ) - [F] —
fixed
— Ping Scale — ( PingGetScale ) - [F] —
fixed
— Ping Depth — ( PingGetDepth ) - [F] —
text
— Ping Tooltip — ( PingGetTooltip ) - [F] —
color
— Color Of Ping — ( PingGetColor ) - [F] —
fixed
— Duration of Ping — ( PingGetDuration ) - [F] —
playergroup
— Ping Players — ( PingGetPlayerGroup )
# Examples
# mods/heroesdata.stormmod
// L3020
PingSetDuration(PingLastCreated(), lp_duration)
// L3034
PingSetDuration(PingLastCreated(), lp_duration)
# mods/heroesmapmods/battlegroundmapmods/alteracpass.stormmod
// L2337
PingSetDuration(PingLastCreated(), libMMAP_gv_eventTimerWarningDuration_C)
// L2339
PingSetDuration(PingLastCreated(), libMMAP_gv_eventTimerWarningDuration_C)
// L2347
PingSetDuration(PingLastCreated(), libMMAP_gv_eventTimerWarningDuration_C)
// L2349
PingSetDuration(PingLastCreated(), libMMAP_gv_eventTimerWarningDuration_C)
# mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod
// L539
PingSetDuration(lv_ping, 3.0)