Difference between revisions of "cmf common fnc isRole"
Jump to navigation
Jump to search
(2 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
|version2=2.1.0 | |version2=2.1.0 | ||
|descr= | |descr=Is used to check if a unit is as specific role. | ||
|exec=Call | |exec=Call | ||
Line 19: | Line 19: | ||
|p2= Role: [https://community.bistudio.com/wiki/String String] | |p2= Role: [https://community.bistudio.com/wiki/String String] | ||
|r1= | |r1= True if unit has role: [https://community.bistudio.com/wiki/Boolean Boolean] | ||
|x1= {{code|lang=scilab|[player, "RFL"] call cmf_common_fnc_isRole}} | |x1= {{code|lang=scilab|[player, "RFL"] call cmf_common_fnc_isRole}} | ||
|seealso= [[cmf_common_fnc_getConfigParam]] [[cmf_common_fnc_setCallsign]] [[cmf_common_fnc_setRole]] | |||
}} | }} |
Latest revision as of 21:35, 17 December 2022
Description
- Description:
- Is used to check if a unit is as specific role.
- Execution:
- Call
- Groups:
- CMF3: common
Syntax
- Syntax:
- [Unit, Role] call cmf_common_fnc_isRole
- Parameters:
- Unit: Object
- Role: String
- Return Value:
- True if unit has role: Boolean
Examples
- Example 1:
[player, "RFL"] call cmf_common_fnc_isRole
Additional Information
Internal Variables
- No internal variables
Events
- No events
Notes