BIS fnc sideType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|gr([0-9]+) = " to "|gr$1= ")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.00
|1.00


|gr1= Sides
|gr1= Sides


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


| sideID call [[BIS_fnc_sideType]];
|s1= sideID call [[BIS_fnc_sideType]];


|p1= sideID - [[Number]] - Side ID.
|p1= sideID - [[Number]] - Side ID.


|[[Side]] - Side based on side ID
|r1= [[Side]] - Side based on side ID


|x1= <code>0 [[call]] [[BIS_fnc_sideType]];//Returns EAST</code>
|x1= <code>0 [[call]] [[BIS_fnc_sideType]]; {{cc|returns EAST}}</code>


|[[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]]
|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]]
}}
}}
[[Category:{{Name|arma3}}: Functions|{{uc:sideType}}]]

Revision as of 22:40, 9 June 2021

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:
SideBIS_fnc_sideIDsidecountSideCfgVehicles config side valueSideplayerSidewesteastresistanceciviliansideLogicsideFriendlysideEnemysideUnknownsideEmptysideAmbientLifeSide 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