{"name":"BIS_fnc_shakeMapEH","operator":null,"title":"BIS fnc shakeMapEH","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_shakeMapEH","revid":329307,"updated":"2022-07-27T10:12:18Z","groups":["Map and Markers","Event Handlers"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.78"}],"since":{"game":"arma3","name":"Arma 3","version":"1.78"},"arma3_since":"1.78","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Event handler function for the shakeMap.sqf function","syntaxes":[{"syntax":"[] call BIS_fnc_shakeMapEH","since":null,"effect":null,"exec":null,"params":[{"name":"arg","type":null,"types":[],"optional":false,"default":null,"description":"NUMBER: duration of shake effect.\nSelect 1 - NUMBER: magnitude of the shaking force.\nSelect 2 - ARRAY: position of the camera center around which the shake effect occurs.\nSelect 3 - NUMBER: starting shake time (i.e. time elapsed since mission started till the start of the shake animation).","since":null,"text":"Select 0 - NUMBER: duration of shake effect.\nSelect 1 - NUMBER: magnitude of the shaking force.\nSelect 2 - ARRAY: position of the camera center around which the shake effect occurs.\nSelect 3 - NUMBER: starting shake time (i.e. time elapsed since mission started till the start of the shake animation).","source":"docblock"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"None","source":"docblock"}}],"examples":[{"text":"```sqf\nprivate _shakeEventCode = format [\"[%1, %2, %3, %4] call BIS_fnc_drawMapShake\", _shakeDuration, _shakeMagnitude, _shakeCenter, time];\nBIS_shakeEventHandler = _map ctrladdeventhandler [\"draw\",_shakeEventCode];\n```","code":["private _shakeEventCode = format [\"[%1, %2, %3, %4] call BIS_fnc_drawMapShake\", _shakeDuration, _shakeMagnitude, _shakeCenter, time];\nBIS_shakeEventHandler = _map ctrladdeventhandler [\"draw\",_shakeEventCode];"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Event Handlers","Function Group: Map and Markers","Functions","Introduced with Arma 3 version 1.78"],"docblock":{"author":"Riccardo Argiolas","description":"Event handler function for the shakeMap.sqf function","params":[{"index":null,"name":null,"types":[],"optional":false,"default":null,"description":"NUMBER: duration of shake effect.\nSelect 1 - NUMBER: magnitude of the shaking force.\nSelect 2 - ARRAY: position of the camera center around which the shake effect occurs.\nSelect 3 - NUMBER: starting shake time (i.e. time elapsed since mission started till the start of the shake animation).","text":"Select 0 - NUMBER: duration of shake effect.\nSelect 1 - NUMBER: magnitude of the shaking force.\nSelect 2 - ARRAY: position of the camera center around which the shake effect occurs.\nSelect 3 - NUMBER: starting shake time (i.e. time elapsed since mission started till the start of the shake animation)."}],"returns":{"types":["Nothing"],"text":"None"},"examples":["private _shakeEventCode = format [\"[%1, %2, %3, %4] call BIS_fnc_drawMapShake\", _shakeDuration, _shakeMagnitude, _shakeCenter, time];\nBIS_shakeEventHandler = _map ctrladdeventhandler [\"draw\",_shakeEventCode];"],"syntax":null,"execution":null,"notes":null,"requirements":null,"meta":{},"text":"Author: Riccardo Argiolas\n\nDescription:\n    Event handler function for the shakeMap.sqf function\n\nParameters:\nSelect 0 - NUMBER: duration of shake effect.\nSelect 1 - NUMBER: magnitude of the shaking force.\nSelect 2 - ARRAY: position of the camera center around which the shake effect occurs.\nSelect 3 - NUMBER: starting shake time (i.e. time elapsed since mission started till the start of the shake animation).\n\nReturns: None\n\nExamples:\n\n    private _shakeEventCode = format [\"[%1, %2, %3, %4] call BIS_fnc_drawMapShake\", _shakeDuration, _shakeMagnitude, _shakeCenter, time];\n    BIS_shakeEventHandler = _map ctrladdeventhandler [\"draw\",_shakeEventCode];"},"filled_from_docblock":["description","params","returns","examples"]}