drawLine3D
From Bohemia Interactive Community
Click on the images for descriptions
Introduced in
- Game:
- Arma 3
- Version:
- 0.50
Description
- Description:
- Draws a line of a given color between two 3D positions. Command has to be executed each frame. Use onEachFrame or addMissionEventHandler "Draw3D".
Syntax
- Syntax:
- drawLine3D [start, end, color]
- Parameters:
- [start, end, color]: Array
- start: PositionAGL
- end: PositionAGL
- color: Color
- Return Value:
- Nothing
Examples
- Example 1:
onEachFrame { drawLine3D [getPos player, getPos cursorTarget, [1,1,1,1]]; };
Additional Information
- Multiplayer:
- -
- See also:
- drawIcon3D
Notes
Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To
Add New Note | How To
Notes
- Posted on August 31, 2013
- Killzone_Kid
- As command syntax indicates, this command expects starting and ending position in format PositionAGL meaning that over the land it expects PositionATL and over the sea PositionASLW. Use additional ASLToAGL and AGLToASL commands wherever is necessary.
addMissionEventHandler ["Draw3D", { drawLine3D [ASLToAGL eyePos soldier1, ASLToAGL eyePos soldier2, [1,0,0,1]]; }];
Bottom Section
- Posted on February 18, 2015 - 02:10 (UTC)
- Waffle SS.
- Visible through fog and past draw distance.