setDirection: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma1 |Game name=
| arma1 |Game name=
Line 11: Line 10:


|gr1= Object Manipulation |GROUP1=
|gr1= Object Manipulation |GROUP1=
____________________________________________________________________________________________


| Set's the orientation of a location. It's area and map icon (if it is 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 is type uses an icon) will be rotated to this orientation.|DESCRIPTION=
____________________________________________________________________________________________


| location '''setDirection''' direction |SYNTAX=
| location '''setDirection''' direction |SYNTAX=
Line 22: Line 19:


| [[Nothing]] |RETURNVALUE=
| [[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> |EXAMPLE1=
location1 [[setDirection]] 45;</code> |EXAMPLE1=
____________________________________________________________________________________________


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

Revision as of 02:33, 17 January 2021

Hover & click on the images for description

Description

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

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