BIS fnc shakeMap: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|game([0-9])= *([^ ]+) * +\|version([0-9])= *([^ ]+) * " to "|game$1=$2 |version$3=$4 ")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *M([a-z ])" to "$1 - m$2")
 
(7 intermediate revisions by the same user not shown)
Line 10: Line 10:
|s1= [duration, magnitude, center] call [[BIS_fnc_shakeMap]]
|s1= [duration, magnitude, center] call [[BIS_fnc_shakeMap]]


|p1= duration: [[Number]] - Duration of the effect
|p1= duration: [[Number]] - duration of the effect


|p2= magnitude: [[Number]] - Magnitude of the shaking force
|p2= magnitude: [[Number]] - magnitude of the shaking force


|p3= center: [[Array]] - Center [[Position|position]] of the effect
|p3= center: [[Array]] - center [[Position|position]] of the effect


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <code>[2,20,[[getMarkerPos]] "BIS_markerExtraction0"] [[call]] [[BIS_fnc_shakeMap]];</code>
|x1= <sqf>[2,20,getMarkerPos "BIS_markerExtraction0"] call BIS_fnc_shakeMap;</sqf>


|x2= <code>[2,20,[[getPos]] [[player]]] [[call]] [[BIS_fnc_shakeMap]];</code>
|x2= <sqf>[2,20,getPos player] call BIS_fnc_shakeMap;</sqf>


|seealso= [[BIS_fnc_shakeMapEH]]
|seealso= [[BIS_fnc_shakeMapEH]]
}}
}}

Latest revision as of 15:39, 8 November 2023

Hover & click on the images for description

Description

Description:
"Camera shake" function for the map. Shakes the map for a given amount of time with a given amount of force around the given camera center. Exits if map is not open.
Execution:
call
Groups:
Map and Markers

Syntax

Syntax:
[duration, magnitude, center] call BIS_fnc_shakeMap
Parameters:
duration: Number - duration of the effect
magnitude: Number - magnitude of the shaking force
center: Array - center position of the effect
Return Value:
Nothing

Examples

Example 1:
[2,20,getMarkerPos "BIS_markerExtraction0"] call BIS_fnc_shakeMap;
Example 2:
[2,20,getPos player] call BIS_fnc_shakeMap;

Additional Information

See also:
BIS_fnc_shakeMapEH

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note