setPosition: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {2,}\}\}" to " }}")
mNo edit summary
 
(13 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Command
{{RV|type=command


| arma1
|game1= arma1
|version1= 1.08


|1.08
|game2= arma2
|version2= 1.00


|arg=
|game3= arma2oa
|version3= 1.50


|eff=
|game4= tkoh
|version4= 1.00
 
|game5= arma3
|version5= 0.50


|gr1= Locations
|gr1= Locations


| Sets the position of a location.
|descr= Sets the position of a location.


| location '''setPosition''' pos
|s1= location [[setPosition]] pos


|p1= location: [[Location]]
|p1= location: [[Location]]
|p2= pos: [[Array]] - format [[Position]]
| [[Nothing]]
 
|x1= <pre>myLocation setPosition [1000,5320,10]</pre>


| [[locationPosition]]
|p2= pos: [[Array]] format [[Position]]
}}


|r1= [[Nothing]]


|x1= <sqf>myLocation setPosition getPosATL player;</sqf>


[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
|seealso= [[locationPosition]]
{{GameCategory|arma1|Scripting Commands}}
}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 21:33, 28 September 2023

Hover & click on the images for description

Description

Description:
Sets the position of a location.
Groups:
Locations

Syntax

Syntax:
location setPosition pos
Parameters:
location: Location
pos: Array format Position
Return Value:
Nothing

Examples

Example 1:
myLocation setPosition getPosATL player;

Additional Information

See also:
locationPosition

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