setSide: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 13: | Line 12: | ||
|gr2= Locations |GROUP2= | |gr2= Locations |GROUP2= | ||
| Sets a location's [[Side|side]]. The default side is Unknown.|DESCRIPTION= | | Sets a location's [[Side|side]]. The default side is Unknown.|DESCRIPTION= | ||
| location '''setSide''' side |SYNTAX= | | location '''setSide''' side |SYNTAX= | ||
Line 24: | Line 21: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>myLocation [[setSide]] [[resistance]]</code> |EXAMPLE1= | |x1= <code>myLocation [[setSide]] [[resistance]]</code> |EXAMPLE1= | ||
| [[Side]], [[side]], [[west]], [[east]], [[resistance]], [[civilian]], [[sideUnknown]], [[sideFriendly]], [[sideEnemy]], [[playerSide]], [[side location]], [[Side relations]], [[independent]] |SEEALSO= | | [[Side]], [[side]], [[west]], [[east]], [[resistance]], [[civilian]], [[sideUnknown]], [[sideFriendly]], [[sideEnemy]], [[playerSide]], [[side location]], [[Side relations]], [[independent]] |SEEALSO= |
Revision as of 02:30, 17 January 2021
Description
Syntax
Examples
- Example 1:
myLocation setSide resistance
Additional Information
- See also:
- SidesidewesteastresistanceciviliansideUnknownsideFriendlysideEnemyplayerSideside locationSide relationsindependent
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
- Posted on 16:00, 3 December 2013 (CEST)
- Ondřejkuzel
- For units, vehicles you can use: "array joinSilent createGroup Side", e.g. in init: "[this] joinSilent createGroup EAST;" described in the note below
- Posted on 19:05, 6 August 2009 (CEST)
- Jtgibson
- This is a frequent question on OFPEC, but produced here because it was difficult to find an answer to. setSide does not work for men, vehicles, etc.: it is intended for locations (i.e., territory). If you want to switch a unit's (e.g., the player's) side in the middle of a battle, make the unit joinSilent a group on the given side instead. If you want the unit to become the group leader after joining, use selectLeader. I haven't tested the idea of spawning a temporary unit of that side, assigning the player to that unit, setting the player as the leader, then deleting the original unit, but I don't see why it wouldn't work. (It begs the question why we don't have a setSide object function, though.)