BIS fnc simpleMoveMarker: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *N([a-z ])" to "$1 - n$2")
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.78


|1.78|Game version=
|gr1= Map and Markers


<!---|arg= local |Multiplayer Arguments=--->
|arg= global


<!---|eff= local |Multiplayer Effects=--->
|eff= global


| <pre>/*
|descr= Moves marker to a new position. Simple version of [[BIS_fnc_moveMarker]].
Author:
BIS


Description:
|s1= [marker, newPosition, duration] call [[BIS_fnc_simpleMoveMarker]]
Moves marker to a new position


Parameters:
|p1= marker: [[String]] - marker
Select 0 - STRING: Marker
Select 1 - ARRAY: New position
Select 2 - NUMBER: Duration 5
Select 3 - NUMBER: Type of interpolation
LINEAR 0
CUBIC 1
EASEIN 2
EASEOUT 3
EASEINOUT 4
HERMITE 5
BERP 6
BOUNCEIN 7
BOUNCEOUT 8
BOUNCEINOUT 9
QUINTICIN 10
QUINTICOUT 11
QUINTICINOUT 12
CONSTANT 13


Returns:
|p2= newPosition: [[Array]] - new position
Nothing


Examples:
|p3= duration: [[Number]] - (Optional, default 5) how long it takes to move the marker in seconds
_move = ["BIS_marker",[1111,2222,0]] call BIS_fnc_moveMarker;
_move = ["BIS_marker",(getMarkerPos "BIS_marker2"),2] call BIS_fnc_moveMarker;
*/</pre>{{placeholder}}<!-- Remove this after fill-in --> |Description=


|[] call [[BIS_fnc_simpleMoveMarker]]|Syntax=
|r1= [[Nothing]]


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|x1= <sqf>["BIS_marker",[1111,2222,0]] call BIS_fnc_moveMarker;</sqf>


|Datatype - description|Return value=
|x2= <sqf>["BIS_marker",(getMarkerPos "BIS_marker2"),2] call BIS_fnc_simpleMoveMarker;</sqf>


|x1= <code></code>|Example 1=
|seealso= [[BIS_fnc_cancelMarker]] [[BIS_fnc_blinkMarker]] [[BIS_fnc_getMarkers]] [[BIS_fnc_rotateMarker]] [[BIS_fnc_resizeMarker]] [[BIS_fnc_moveMarker]]
 
|exec= call |Execution=
 
| |See also=
}}
}}
[[Category:Function Group: Map|{{uc:simpleMoveMarker}}]]
[[Category:Functions|{{uc:simpleMoveMarker}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:simpleMoveMarker}}]]

Latest revision as of 15:39, 8 November 2023

Hover & click on the images for description

Description

Description:
Moves marker to a new position. Simple version of BIS_fnc_moveMarker.
Execution:
call
Groups:
Map and Markers

Syntax

Syntax:
[marker, newPosition, duration] call BIS_fnc_simpleMoveMarker
Parameters:
marker: String - marker
newPosition: Array - new position
duration: Number - (Optional, default 5) how long it takes to move the marker in seconds
Return Value:
Nothing

Examples

Example 1:
["BIS_marker",[1111,2222,0]] call BIS_fnc_moveMarker;
Example 2:
["BIS_marker",(getMarkerPos "BIS_marker2"),2] call BIS_fnc_simpleMoveMarker;

Additional Information

See also:
BIS_fnc_cancelMarker BIS_fnc_blinkMarker BIS_fnc_getMarkers BIS_fnc_rotateMarker BIS_fnc_resizeMarker BIS_fnc_moveMarker

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