BIS fnc groupVehicles: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (GVI released sooner than 1.00, added 0.76. Source http://dev.arma3.com/post/spotrep-00009)
m (pf)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma 3 |= Game name


|0.76|= Game version
|0.76|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Returns all vehicles a group possesses, assigned vehicles can be included.|= Description
____________________________________________________________________________________________


Description:
| [target, assignedVeh] call [[BIS_fnc_groupVehicles]] |= Syntax
Returns all vehicles a group possesses, assigned vehicles can be included
____________________________________________________________________________________________


Parameter(s):
|p1= target: [[Object]] or [[Group]] - The unit or group to check, if unit is given it's group is then used|= Parameter 1
_this select 0: GROUP or OBJECT - The unit or group to check, if unit is given it's 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)|= Parameter 2
_this select 1: BOOLEAN - If assigned vehicles should also be returned (vehicles that unit's may not be inside of but assigned to)
Returns:
ARRAY - List of all vehicles in control/assigned to the group, empty if group has none
*/
//Parameters
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_groupVehicles]]; --> |= Syntax
| [[Array]] - List of all vehicles in control/assigned to the group, empty if group has none|= Return value
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>[ [[group]] [[player]], [[true]] ] [[call]] [[BIS_fnc_groupVehicles]];</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[group]], [[createVehicle]] |= See also
 
}}
}}



Revision as of 15:27, 1 June 2018

Hover & click on the images for description

Description

Description:
Returns all vehicles a group possesses, assigned vehicles can be included.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[target, assignedVeh] call BIS_fnc_groupVehicles
Parameters:
target: Object or Group - The unit or group to check, if unit is given it's 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

Notes

Bottom Section