playerSide: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "[[Category:Scripting_Commands_Take_On_Helicopters" to "[[Category:Scripting Commands Take On Helicopters") |
Lou Montana (talk | contribs) m (Text replacement - "\<dt class\=\"note\"\>\'\'\'\[\[(.*)\]\]\'\'\'" to "<dt class="note">$1") |
||
Line 45: | Line 45: | ||
<dd class="notedate">Posted on 27 Jan, 2008 | <dd class="notedate">Posted on 27 Jan, 2008 | ||
<dt class="note"> | <dt class="note">[[User:Dr_Eyeball|Dr_Eyeball]]<dd class="note"> | ||
[[playerSide]] defaults to [[west]] for JIP players early on during initialization regardless of their side.<br> | [[playerSide]] defaults to [[west]] for JIP players early on during initialization regardless of their side.<br> | ||
So if you are a JIP player on another side (like [[east]]), you will need to cater for this for any early initializations. | So if you are a JIP player on another side (like [[east]]), you will need to cater for this for any early initializations. | ||
Line 51: | Line 51: | ||
<dd class="notedate">Posted on 13 Oct, 2008 | <dd class="notedate">Posted on 13 Oct, 2008 | ||
<dt class="note"> | <dt class="note">[[User:Dr_Eyeball|Dr_Eyeball]]<dd class="note"> | ||
[[playerSide]] also shows your starting side, even if your [[side]] changes to [[enemy]] due to a bad [[rating]]. In that case, playerSide != side player. | [[playerSide]] also shows your starting side, even if your [[side]] changes to [[enemy]] due to a bad [[rating]]. In that case, playerSide != side player. | ||
Revision as of 15:50, 17 May 2020
Description
- Description:
- Returns the player's side. This is valid even when the player controlled person is dead (a difference from side player).
- Groups:
- Uncategorised
Syntax
- Syntax:
- playerSide
- Return Value:
- Side
Examples
- Example 1:
if (side man1 == playerSide) then { hint "man1 is on your side!"; };
- Example 2:
switch (playerSide) do { case west: { hint "You are BLUFOR"; }; case east: { hint "You are OPFOR"; }; };
Additional Information
- See also:
- SidesidewesteastresistanceciviliansideLogicsideFriendlysideEnemysideUnknownsideEmptysideAmbientLifeSide 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 27 Jan, 2008
- Dr_Eyeball
-
playerSide defaults to west for JIP players early on during initialization regardless of their side.
So if you are a JIP player on another side (like east), you will need to cater for this for any early initializations. - Posted on 13 Oct, 2008
- Dr_Eyeball
- playerSide also shows your starting side, even if your side changes to enemy due to a bad rating. In that case, playerSide != side player.