Difference between revisions of "cmf gameplay fnc restrictedVehicle"
Jump to navigation
Jump to search
(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...") |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
|descr=When called on a vehicle this function will restrict the vehicle's operator seats (driver, gunner, commander) by the supplied condition. | |descr=When called on a vehicle this function will restrict the vehicle's operator seats (driver, gunner, commander) by the supplied condition. | ||
{{Feature | Warning | This command is broken on some vehicles. It is recommended to test if it works on your vehicle.}} | {{CMF Feature | Warning | This command is broken on some vehicles. It is recommended to test if it works on your vehicle.}} | ||
|exec=Call | |exec=Call | ||
|cmp=gameplay | |cmp=gameplay | ||
|grp1=Broken Functions | |||
|s1=[vehicle, condition] call [[cmf_gameplay_fnc_restrictedVehicle]] | |s1=[vehicle, condition] call [[cmf_gameplay_fnc_restrictedVehicle]] | ||
Line 25: | Line 27: | ||
|x1= {{code|lang=scilab|// Restrict myVehicle to unit's who has role "CREW" | |x1= {{code|lang=scilab|// Restrict myVehicle to unit's who has role "CREW" | ||
[_myVehicle, { [_this, "CREW"] call cmf_common_fnc_isRole }] call cmf_gameplay_fnc_restrictedVehicle;}} | [_myVehicle, { [_this, "CREW"] call cmf_common_fnc_isRole }] call cmf_gameplay_fnc_restrictedVehicle;}} | ||
|seealso= [[cmf_gameplay_fnc_flashbangOverride]] [[cmf_gameplay_fnc_repairRearmStation]] | |||
[[cmf_gameplay_fnc_safeStart]] [[cmf_gameplay_fnc_tracers]] | |||
}} | }} |
Latest revision as of 21:44, 17 December 2022
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