BIS fnc groupVehicles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \| *(\[\[[a-zA-Z ]+\]\].+) \|x1=" to " |r1=$1 |x1=")
m (Text replacement - " \| *(\[[a-zA-Z,. ]*\] call ('''|\[\[)?BI(N|S)_fnc_[a-zA-Z]+('''|\]\])?) * \|p1=" to " |s1=$1 |p1=")
Line 9: Line 9:
| Returns all vehicles a group possesses, assigned vehicles can be included.
| Returns all vehicles a group possesses, assigned vehicles can be included.


| [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
|p1= target: [[Object]] or [[Group]] - The unit or group to check, if unit is given it is group is then used

Revision as of 16:56, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
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:
[group player, true] call BIS_fnc_groupVehicles;

Additional Information

See also:
groupcreateVehicle

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