Jass:PingMinimapForForceEx
Aus Mappedia
| Funktion: PingMinimapForForceEx | |
|---|---|
| Parameter: | force real real real integer real real real |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function PingMinimapForForceEx takes force whichForce, real x, real y, real duration, integer style, real red, real green, real blue returns nothing local integer red255 = PercentTo255(red) local integer green255 = PercentTo255(green) local integer blue255 = PercentTo255(blue) if (IsPlayerInForce(GetLocalPlayer(), whichForce)) then // Use only local code (no net traffic) within this block to avoid desyncs. // Prevent 100% red simple and flashy pings, as they become "attack" pings. if (red255 == 255) and (green255 == 0) and (blue255 == 0) then set red255 = 254 endif if (style == bj_MINIMAPPINGSTYLE_SIMPLE) then call PingMinimapEx(x, y, duration, red255, green255, blue255, false) elseif (style == bj_MINIMAPPINGSTYLE_FLASHY) then call PingMinimapEx(x, y, duration, red255, green255, blue255, true) elseif (style == bj_MINIMAPPINGSTYLE_ATTACK) then call PingMinimapEx(x, y, duration, 255, 0, 0, false) else // Unrecognized ping style - ignore the request. endif //call StartSound(bj_pingMinimapSound) endif endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| force | whichForce | |
| real | x | |
| real | y | |
| real | duration | |
| integer | style | |
| real | red | |
| real | green | |
| real | blue |

russische Team, stehen wir nun im Halbfinale vor einem weiteren Giganten der e-Sports-Szene:
Finnland! Die Skandinavier hatten es im Gegensatz zu unserem