BIS fnc moveMarker: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Lou Montana (talk | contribs) (Fix example) |
||
(19 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 1.78 | |version1= 1.78 | ||
|gr1= Map and Markers | |||
|arg= global | |arg= global | ||
Line 13: | Line 12: | ||
|descr= Moves marker to a new position | |descr= Moves marker to a new position | ||
|s1= [marker, newPosition, duration, interpolationType] | |s1= [marker, newPosition, duration, interpolationType] call [[BIS_fnc_moveMarker]] | ||
|p1= marker: [[String]] - | |p1= marker: [[String]] - marker | ||
|p2= newPosition: [[Array]] - | |p2= newPosition: [[Array]] - new position | ||
|p3= duration: [[Number]] - (Optional, default 5) | |p3= duration: [[Number]] - (Optional, default 5) how long it takes to move the marker in seconds | ||
|p4= interpolationType: [[Number]] - (Optional, default 4) LINEAR | |p4= interpolationType: [[Number]] - (Optional, default 4) can be one of: | ||
{{Columns|3| | |||
* 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 --> | |||
}} | |||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>["BIS_marker", [1111,2222,0]] call BIS_fnc_moveMarker;</sqf> | ||
|x2= < | |x2= <sqf>["BIS_marker", getMarkerPos "BIS_marker2", 2, 9] call BIS_fnc_moveMarker;</sqf> | ||
|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]] | ||
}} | }} | ||
Latest revision as of 15:20, 26 November 2023
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
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
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