BIS fnc groupVehicles: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *(arg|eff|mp|serverExec|gr[0-9]) *= *(.*) * *\|([^=]{12})" to "|$1=$2 |descr=$3") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 0.76 | |||
|0.76 | |||
|gr1= Vehicles | |gr1= Vehicles | ||
Line 9: | Line 8: | ||
|descr= Returns all vehicles a group possesses, assigned vehicles can be included. | |descr= Returns all vehicles a group possesses, assigned vehicles can be included. | ||
|s1=[target, assignedVeh] call [[BIS_fnc_groupVehicles]] | |s1= [target, assignedVeh] call [[BIS_fnc_groupVehicles]] | ||
|p1= target: [[Object]] or [[Group]] - the unit or group to check, if unit is given it is group is then used | |||
|p2= assignedVeh: [[Boolean]] - if assigned vehicles should also be returned (vehicles that unit's may not be inside of but assigned to) | |||
|p2= assignedVeh: [[Boolean]] - | |||
|r1=[[Array]] - | |r1= [[Array]] - list of all vehicles in control/assigned to the group, empty if group has none | ||
|x1= < | |x1= <sqf>[group player, true] call BIS_fnc_groupVehicles;</sqf> | ||
|seealso= [[group]] | |seealso= [[group]] [[createVehicle]] | ||
}} | }} |
Latest revision as of 13:50, 13 July 2022
Description
- Description:
- Returns all vehicles a group possesses, assigned vehicles can be included.
- Execution:
- call
- Groups:
- Vehicles
Syntax
- Syntax:
- [target, assignedVeh] call BIS_fnc_groupVehicles
- Parameters:
- target: Object or Group - the unit or group to check, if unit is given it is group is then used
- assignedVeh: Boolean - if assigned vehicles should also be returned (vehicles that unit's may not be inside of but assigned to)
- Return Value:
- Array - list of all vehicles in control/assigned to the group, empty if group has none
Examples
- Example 1:
Additional Information
- See also:
- group createVehicle
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