drawLine: Difference between revisions
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!|= | | Draw a line on the map. Can decrease framerate!|DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| map '''drawLine''' [position1, position2, color] |= | | map '''drawLine''' [position1, position2, color] |SYNTAX= | ||
|p1= map: [[Control]] |= | |p1= map: [[Control]] |PARAMETER1= | ||
|p2= [position1, position2, color]: [[Array]] |= | |p2= [position1, position2, color]: [[Array]] |PARAMETER2= | ||
|p3= position1: [[Position2D]], [[Position3D]], [[Object]] |= | |p3= position1: [[Position2D]], [[Position3D]], [[Object]] |PARAMETER3= | ||
|p4= position2: [[Position2D]], [[Position3D]], [[Object]] |= | |p4= position2: [[Position2D]], [[Position3D]], [[Object]] |PARAMETER4= | ||
|p5= color: [[Color]] |= | |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]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[drawArrow]], [[drawEllipse]], [[drawIcon]], [[drawRectangle]], [[drawPolygon]], [[drawTriangle]] |= | | [[drawArrow]], [[drawEllipse]], [[drawIcon]], [[drawRectangle]], [[drawPolygon]], [[drawTriangle]] |SEEALSO= | ||
}} | }} |
Revision as of 14:38, 7 April 2019
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
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