fn vbs rotatePoint (VBS2)
From Bohemia Interactive Community
angle
| Editors, please check Policy: Scripting Command Page Syntax. |
Click on the images for descriptions
Introduced in
- Game:
- Virtual Battlespace 2
- Version:
- 1.22
Description
- Description:
- Moves a point around a center by a specified angle.
Syntax
- Syntax:
- [center,angle,pos] call fn_vbs_rotatePoint
- Parameters:
- center: Position or Object - Center around which point is rotated
- angle: Number - Rotational angle (positive or negative)
- pos: Position - Point that is rotated
- Return Value:
- Number
Examples
- Example 1:
_newpos = [[2000,3000], 35, [2500,3500]] call fn_vbs_rotatePoint;
Additional Information
- Multiplayer:
- Behaviour unknown.

