BIS fnc moveMarker: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|s([0-9])= ([^ ]+) (\[\[call\]\]) ([^ ]+) " to "|s$1= $2 call $4 ")
m (Use Columns template)
Line 20: Line 20:
|p3= duration: [[Number]] - (Optional, default 5) How long it takes to move the marker in seconds
|p3= duration: [[Number]] - (Optional, default 5) How long it takes to move the marker in seconds


|p4= interpolationType: [[Number]] - (Optional, default 4) LINEAR 0<br>
|p4= interpolationType: [[Number]] - (Optional, default 4) can be one of:
  CUBIC   1<br>
{{Columns|4|
  EASEIN 2<br>
* 0: LINEAR
  EASEOUT 3<br>
* 1: CUBIC
  EASEINOUT 4<br>
* 2: EASEIN
  HERMITE 5<br>
* 3: EASEOUT
  BERP 6<br>
* 4: EASEINOUT
  BOUNCEIN 7<br>
* 5: HERMITE
  BOUNCEOUT 8<br>
* 6: BERP
  BOUNCEINOUT 9<br>
* 7: BOUNCEIN
  QUINTICIN 10<br>
* 8: BOUNCEOUT
  QUINTICOUT 11<br>
* 9: BOUNCEINOUT
  QUINTICINOUT 12<br>
* 10: QUINTICIN
  CONSTANT 13<br>
* 11: QUINTICOUT
* 12: QUINTICINOUT
* 13: CONSTANT
}}


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


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


|x2= <code>["BIS_marker",([[getMarkerPos]] "BIS_marker2"),2,13] [[call]] [[BIS_fnc_moveMarker]];</code>
|x2= <code>["BIS_marker", [[getMarkerPos]] "BIS_marker2", 2, 13] [[call]] [[BIS_fnc_moveMarker]];</code>


|seealso= [[BIS_fnc_cancelMarker]] [[BIS_fnc_blinkMarker]] [[BIS_fnc_getMarkers]] [[BIS_fnc_rotateMarker]] [[BIS_fnc_resizeMarker]]
|seealso= [[BIS_fnc_cancelMarker]] [[BIS_fnc_blinkMarker]] [[BIS_fnc_getMarkers]] [[BIS_fnc_rotateMarker]] [[BIS_fnc_resizeMarker]]
}}
}}

Revision as of 18:04, 13 July 2021

Hover & click on the images for description

Description

Description:
Moves marker to a new position
Execution:
call
Groups:
Map and Markers

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) can be one of:
  • 0: LINEAR
  • 1: CUBIC
  • 2: EASEIN
  • 3: EASEOUT
  • 4: EASEINOUT
  • 5: HERMITE
  • 6: BERP
  • 7: BOUNCEIN
  • 8: BOUNCEOUT
  • 9: BOUNCEINOUT
  • 10: QUINTICIN
  • 11: QUINTICOUT
  • 12: QUINTICINOUT
  • 13: CONSTANT
Return Value:
Nothing

Examples

Example 1:
["BIS_marker", [1111,2222,0]] call BIS_fnc_moveMarker;
Example 2:
["BIS_marker", getMarkerPos "BIS_marker2", 2, 13] 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