setSide: Difference between revisions
Jump to navigation
Jump to search
Ondrejkuzel (talk | contribs) No edit summary |
No edit summary |
||
Line 51: | Line 51: | ||
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]] | ||
{{subst:Add new note/construct| | |||
<!-- | |||
* Replace from here (including the arrow just above) | |||
* Please add your note here, replacing these comments | |||
* Please '''PREVIEW YOUR ADDITION BEFORE SAVING''' | |||
* Thank you | |||
* Equal symbols "=" should be added as "{{subst:=}}" (excluding quotes) | |||
* Pipes "|" should be added as "{{subst:!}}" (excluding quotes) | |||
* New lines should be forced by the use of "<br>" tags | |||
* Examples should be placed between tags <code>_like {{subst:=}} [[_this]];</code> | |||
* Video Tutorial: How to properly add notes: https://www.youtube.com/watch?v=NtOl1gLz3Fo (copy and paste) | |||
* Replace to here (including the arrow just below) | |||
The remaining problem is: Side automatically changes when boarding an empty (then civilian) vehicle, for the _unit boarding side. So, you keep this side even if disembarking. The empty vehicle is no more civilian && could lead to weird conditions (as count list of the units' side)! A "SetSide" function, taking this point into account, will be appreciated. | |||
}} |
Revision as of 05:49, 6 November 2014
Description
- Description:
- Sets a location's side. The default side is Unknown.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
myLocation setSide resistance
Additional Information
- See also:
- SidesidewesteastresistanceciviliansideUnknownsideFriendlysideEnemyplayerSideside locationSide relations
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)
- Ondrejkuzel
- 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.)
Bottom Section
{{subst:Add new note/construct|