setDirection: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(example see also)
m (template:command argument fix)
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Set's the orientation of a location. It's area and map icon (if it's type uses an icon) will be rotated to this orientation.|= Description
| Set's the orientation of a location. It's area and map icon (if it's type uses an icon) will be rotated to this orientation.|DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| location '''setDirection''' direction |= Syntax
| location '''setDirection''' direction |SYNTAX=


|p1= location: [[Location]] |= Parameter 1
|p1= location: [[Location]] |PARAMETER1=
|p2= direction: [[Number]] |= Parameter 2
|p2= direction: [[Number]] |PARAMETER2=


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>location1 = [[createLocation]] ["VegetationPalm", [[getPos]] [[player]], 200, 200];   
|x1= <code>location1 = [[createLocation]] ["VegetationPalm", [[getPos]] [[player]], 200, 200];   
location1 [[setText]] "Benargee's Palm Tree";  
location1 [[setText]] "Benargee's Palm Tree";  
location1 [[setDirection]] 45;</code> |= Example 1
location1 [[setDirection]] 45;</code> |EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[createLocation]], [[setText]], [[direction]] |= See also
| [[createLocation]], [[setText]], [[direction]] |SEEALSO=


}}
}}

Revision as of 14:47, 7 April 2019

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

Description

Description:
Set's the orientation of a location. It's area and map icon (if it's type uses an icon) will be rotated to this orientation.
Groups:
Uncategorised

Syntax

Syntax:
location setDirection direction
Parameters:
location: Location
direction: Number
Return Value:
Nothing

Examples

Example 1:
location1 = createLocation ["VegetationPalm", getPos player, 200, 200]; location1 setText "Benargee's Palm Tree"; location1 setDirection 45;

Additional Information

See also:
createLocationsetTextdirection

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