drawLine: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (added example and removed note (put into description))
m (template:command argument fix)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Draw a line on the map. Can decrease framerate!|= Description
| Draw a line on the map. Can decrease framerate!|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| map '''drawLine''' [position1, position2, color] |= Syntax
| map '''drawLine''' [position1, position2, color] |SYNTAX=


|p1= map: [[Control]] |= Parameter 1
|p1= map: [[Control]] |PARAMETER1=


|p2= [position1, position2, color]: [[Array]] |= Parameter 2
|p2= [position1, position2, color]: [[Array]] |PARAMETER2=


|p3= position1: [[Position2D]], [[Position3D]], [[Object]] |= Parameter 3
|p3= position1: [[Position2D]], [[Position3D]], [[Object]] |PARAMETER3=


|p4= position2: [[Position2D]], [[Position3D]], [[Object]] |= Parameter 4
|p4= position2: [[Position2D]], [[Position3D]], [[Object]] |PARAMETER4=


|p5= color: [[Color]] |= Parameter 5
|p5= color: [[Color]] |PARAMETER5=


|x1= <code>([[findDisplay]] 12 [[displayCtrl]] 51) [[ctrlAddEventHandler]] ["Draw","
|x1= <code>([[findDisplay]] 12 [[displayCtrl]] 51) [[ctrlAddEventHandler]] ["Draw","
Line 30: Line 30:
"];</code> |Example 1=
"];</code> |Example 1=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


|  [[drawArrow]], [[drawEllipse]], [[drawIcon]], [[drawRectangle]], [[drawPolygon]], [[drawTriangle]]  |= See also
|  [[drawArrow]], [[drawEllipse]], [[drawIcon]], [[drawRectangle]], [[drawPolygon]], [[drawTriangle]]  |SEEALSO=


}}
}}

Revision as of 14:38, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Draw a line on the map. Can decrease framerate!
Groups:
Uncategorised

Syntax

Syntax:
map drawLine [position1, position2, color]
Parameters:
map: Control
[position1, position2, color]: Array
position1: Position2D, Position3D, Object
position2: Position2D, Position3D, Object
color: Color
Return Value:
Nothing

Examples

Example 1:
(findDisplay 12 displayCtrl 51) ctrlAddEventHandler ["Draw"," (_this select 0) drawLine [ getPos player, [0,0,0], [0,0,1,1] ]; "];

Additional Information

See also:
drawArrowdrawEllipsedrawIcondrawRectangledrawPolygondrawTriangle

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

Bottom Section