# Duration of Ping

Grammar — Duration of ping
FlagsNative | Function

Returns the ping duration as a real value.

# Arguments

  • int<ping> — Ping

Returns — fixed

native fixed PingGetDuration(int p);

Category: Ping / Advanced

# Examples

campaigns/swarm.sc2campaignbase.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.sc2mapMapScript.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);