setSide: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 25: | Line 25: | ||
|p1= location: [[Location]] | |p1= location: [[Location]] | ||
|p2= side: [[Side]] | |p2= side: [[Side]] | ||
Line 31: | Line 32: | ||
|x1= <sqf>_myLocation setSide resistance;</sqf> | |x1= <sqf>_myLocation setSide resistance;</sqf> | ||
|seealso= [[Side]] [[side]] [[west]] [[east]] [[resistance]] [[civilian]] [[sideUnknown]] [[sideFriendly]] [[sideEnemy]] [[playerSide | |seealso= [[Side]] [[side]] [[west]] [[east]] [[resistance]] [[civilian]] [[sideUnknown]] [[sideFriendly]] [[sideEnemy]] [[playerSide]] [[Side relations]] [[independent]] | ||
}} | }} | ||
Line 37: | Line 38: | ||
|user= Ondřejkuzel | |user= Ondřejkuzel | ||
|timestamp= 201312031600 | |timestamp= 201312031600 | ||
|text= For units, vehicles you can use: | |text= For units, vehicles you can use: {{ic|[[Array|array]] [[joinSilent]] [[createGroup]] [[Side]]}}, e.g. in init: "[this] joinSilent createGroup EAST;" ''described in the note below'' | ||
}} | }} | ||
Revision as of 21:04, 18 April 2022
Description
Syntax
Examples
- Example 1:
Additional Information
- See also:
- Side side west east resistance civilian sideUnknown sideFriendly sideEnemy playerSide Side relations independent
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
- Posted on Dec 03, 2013 - 16:00 (UTC)
-
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 Aug 06, 2009 - 19:05 (UTC)
- 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 have not 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.)
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.08
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Sides
- Command Group: Locations