BIS fnc moveMarker: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (infobox to template)
m (filled page)
Line 1: Line 1:
{{Function|= Comments
{{Function


| arma3 |Game name=
|game1= arma3


|1.78|Game version=
|version1= 1.78


<!---|arg= local |Multiplayer Arguments=--->
<!--|exec= server|=-->


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


| <pre>/*
|eff= global
Author:
BIS


Description:
|descr= Moves marker to a new position
Moves marker to a new position


Parameters:
|s1= [marker, newPosition, duration, interpolationType] [[call]] [[BIS_fnc_moveMarker]]
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:
|p1= marker: [[String]] - Marker
Nothing


Examples:
|p2= newPosition: [[Array]] - New position
_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_moveMarker]]|Syntax=
|p3= duration: [[Number]] - (Optional, default 5) How long it takes to move the marker in seconds


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|p4= interpolationType: [[Number]] - (Optional, default 4) LINEAR  0<br>
  CUBIC  1<br>
  EASEIN  2<br>
  EASEOUT  3<br>
  EASEINOUT 4<br>
  HERMITE  5<br>
  BERP  6<br>
  BOUNCEIN 7<br>
  BOUNCEOUT 8<br>
  BOUNCEINOUT 9<br>
  QUINTICIN 10<br>
  QUINTICOUT 11<br>
  QUINTICINOUT 12<br>
  CONSTANT 13<br>


|Datatype - description|Return value=
|r1= [[Nothing]]


|x1= <code></code>|Example 1=
|x1= <code>["BIS_marker",[1111,2222,0]] [[call]] [[BIS_fnc_moveMarker]];</code>


|exec= call |Execution=
|x2= <code>["BIS_marker",([[getMarkerPos]] "BIS_marker2"),2] [[call]] [[BIS_fnc_moveMarker]];</code>
 
|exec= call
 
|seealso= [[BIS_fnc_cancelMarker]] [[BIS_fnc_blinkMarker]] [[BIS_fnc_getMarkers]] [[BIS_fnc_rotateMarker]] [[BIS_fnc_resizeMarker]]


| |See also=
}}
}}
[[Category:Function Group: Map|{{uc:moveMarker}}]]
[[Category:Functions|{{uc:moveMarker}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:moveMarker}}]]

Revision as of 13:42, 6 January 2020

Hover & click on the images for description

Description

Description:
Moves marker to a new position
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[marker, newPosition, duration, interpolationType] call BIS_fnc_moveMarker
Parameters:
marker: String - Marker
newPosition: Array - New position
duration: Number - (Optional, default 5) How long it takes to move the marker in seconds
interpolationType: Number - (Optional, default 4) 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
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_moveMarker;

Additional Information

See also:
BIS_fnc_cancelMarker BIS_fnc_blinkMarker BIS_fnc_getMarkers BIS_fnc_rotateMarker BIS_fnc_resizeMarker

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