Jass:CameraSetEQNoiseForPlayer
Aus Mappedia
| Funktion: CameraSetEQNoiseForPlayer | |
|---|---|
| Parameter: | player real |
| Rückgabewert: | nothing |
| Autor: | Blizzard |
| Quelle: | Blizzard.j |
| Synchron: | Unbekannt |
Code
function CameraSetEQNoiseForPlayer takes player whichPlayer, real magnitude returns nothing local real richter = magnitude if (richter > 5.0) then set richter = 5.0 endif if (richter < 2.0) then set richter = 2.0 endif if (GetLocalPlayer() == whichPlayer) then // Use only local code (no net traffic) within this block to avoid desyncs. call CameraSetTargetNoiseEx(magnitude*2.0, magnitude*Pow(10,richter),true) call CameraSetSourceNoiseEx(magnitude*2.0, magnitude*Pow(10,richter),true) endif endfunction
Parameter
| Typ | Name | Beschreibung |
|---|---|---|
| player | whichPlayer | |
| real | magnitude |
