cmf_gameplay_fnc_restrictedVehicle

From cluster wiki
Revision as of 14:36, 17 December 2022 by Eric (talk | contribs) (Created page with "Category:CMF3: Broken Functions {{CMF Function |game1=arma3 |version1=0.50 |game2=cmf3 |version2=2.1.0 |descr=When called on a vehicle this function will restrict the v...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Hover & click on the images for description
Description
Description:
When called on a vehicle this function will restrict the vehicle's operator seats (driver, gunner, commander) by the supplied condition. Template:Feature
Execution:
Call
Groups:
CMF3: gameplay
Syntax
Syntax:
[vehicle, condition] call cmf_gameplay_fnc_restrictedVehicle
Parameters:
vehicle: Object - Vehicle to restrict
condition: Code - Condition to restrict by, the unit accessing the vehicle can be access with _this
Return Value:
None
Examples
Example 1:
// Restrict myVehicle to unit's who has role "CREW"
[_myVehicle, { [_this, "CREW"] call cmf_common_fnc_isRole }] call cmf_gameplay_fnc_restrictedVehicle;
Additional Information
See also:
See also needed
Internal Variables
No internal variables
Events
No events
Notes