cmf_gameplay_fnc_restrictedVehicle
Jump to navigation
Jump to search
Description
- Description:
- When called on a vehicle this function will restrict the vehicle's operator seats (driver, gunner, commander) by the supplied condition.
- Execution:
- Call
- Groups:
- CMF3: gameplay CMF3: Broken Functions
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:
- cmf_gameplay_fnc_flashbangOverride cmf_gameplay_fnc_repairRearmStation cmf_gameplay_fnc_safeStart cmf_gameplay_fnc_tracers
Internal Variables
- No internal variables
Events
- No events
Notes