playerSide: Difference between revisions
Jump to navigation
Jump to search
Waffle SS. (talk | contribs) No edit summary |
(formatting, added category) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns the player's side. This is valid even when the player controlled person is dead (a difference from [[side]] [[player]]). |= Description | | Returns the player's [[Side|side]]. This is valid even when the player controlled person is dead (a difference from [[side]] [[player]]). |= Description | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | '''playerSide''' |= Syntax | ||
| [[Side]] |= Return value | | [[Side]] |= Return value | ||
|x1= | |x1= | ||
<code>[[if]] ([[side]] man1 == '''playerSide''') [[then]] {[[hint]] "man1 is on your side!"};</code>|= EXAMPLE1 | <code>[[if]] ([[side]] man1 == '''playerSide''') [[then]] { | ||
[[hint]] "man1 is on your side!"; | |||
};</code>|= EXAMPLE1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 47: | Line 49: | ||
[[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}}}}]] | ||
[[Category:Command_Group:_Sides|{{uc:{{PAGENAME}}}}]] |
Revision as of 15:31, 18 April 2014
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
Additional Information
- See also:
- SidesidewesteastresistanceciviliansideLogicsideFriendlysideEnemysideUnknownside 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 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.