BIS fnc sideType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "(\|[pr][0-9]+ *= *[^-\r\n]+) *- *S([a-z])" to "$1 - s$2")
 
(45 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Sides


|1.00|= Game version
|descr= Returns side type based on side ID. See [[BIS_fnc_sideID]] for more information.
____________________________________________________________________________________________


| <pre>/*
|s1= sideID call [[BIS_fnc_sideType]]


Description:
|p1= sideID - [[Number]] - Side ID.
Returns side type based on side ID


Parameter(s):
|r1= [[Side]] - side based on side ID
0: NUMBER


Returns:
|x1= <sqf>0 call BIS_fnc_sideType; // returns EAST</sqf>
SIDE
*/
 
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
 
| <!-- [] call [[BIS_fnc_sideType]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[Side]] [[BIS_fnc_sideID]] [[side]] [[countSide]] [[CfgVehicles_Config_Reference#side|CfgVehicles config side value]] [[Side]] [[playerSide]] [[west]] [[east]] [[resistance]] [[civilian]] [[sideLogic]] [[sideFriendly]] [[sideEnemy]] [[sideUnknown]] [[sideEmpty]] [[sideAmbientLife]] [[Side Relations]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Sides|{{uc:sideType}}]]
[[Category:Functions|{{uc:sideType}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:sideType}}]]

Latest revision as of 15:44, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns side type based on side ID. See BIS_fnc_sideID for more information.
Execution:
call
Groups:
Sides

Syntax

Syntax:
sideID call BIS_fnc_sideType
Parameters:
sideID - Number - Side ID.
Return Value:
Side - side based on side ID

Examples

Example 1:
0 call BIS_fnc_sideType; // returns EAST

Additional Information

See also:
Side BIS_fnc_sideID side countSide CfgVehicles config side value Side playerSide west east resistance civilian sideLogic sideFriendly sideEnemy sideUnknown sideEmpty sideAmbientLife Side 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