drawLine3D: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 53: Line 53:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on February 18, 2015 - 02:10 (UTC)</dd>
<dt class="note">[[User:Waffle SS.|Waffle SS.]]</dt>
<dd class="note">
Visible through fog and past draw distance.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 04:10, 18 February 2015

Hover & click on the images for description

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".
Groups:
Uncategorised

Syntax

Syntax:
drawLine3D [start, end, color]
Parameters:
[start, end, color]: Array
start: Position
end: Position
color: Color
Return Value:
Nothing

Examples

Example 1:
onEachFrame { drawLine3D [getPos player, getPos cursorTarget, [1,1,1,1]]; };

Additional Information

See also:
drawIcon3D

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

Notes

Posted on August 31, 2013
Killzone_Kid
As command syntax indicates, this command expects starting and ending position in format Position meaning that over the land it expects PositionATL and over the sea PositionASL. Use additional ASLToATL and ATLToASL commands wherever is necessary. Alternatively use getPos or position commands, which will automatically adjust Z. addMissionEventHandler ["Draw3D", { drawLine3D [ASLToATL eyePos soldier1, ASLToATL 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.