setDirection: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|1.08|Game version=
|1.08


|arg= |Multiplayer Arguments=
|arg=


|eff= |Multiplayer Effects=
|eff=


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


| 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.


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


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


| [[Nothing]] |RETURNVALUE=
| [[Nothing]]
   
   
|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>


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


}}
}}

Revision as of 11:12, 18 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