# Duration of Ping
Grammar — Duration of ping
Flags —Native
|Function
Returns the ping duration as a real value.
# Arguments
int
<ping> — Ping
Returns — fixed
native fixed PingGetDuration(int p);
# 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
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:3332
PingSetScale(PingLastCreated(), 0.75);
PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/975FFC5E"));
TimerStart(lv_pingTimer, PingGetDuration(gv_pingAttack), false, c_timeGame);
auto60A19573_g = lv_triggeringWaveGroup;
auto60A19573_u = UnitGroupCount(auto60A19573_g, c_unitCountAll);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map — MapScript.galaxy:3332
PingSetScale(PingLastCreated(), 0.75);
PingSetTooltip(PingLastCreated(), StringExternal("Param/Value/975FFC5E"));
TimerStart(lv_pingTimer, PingGetDuration(gv_pingAttack), false, c_timeGame);
auto60A19573_g = lv_triggeringWaveGroup;
auto60A19573_u = UnitGroupCount(auto60A19573_g, c_unitCountAll);