getPersonUsedDLCs: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Fix warning)
m (template:command argument fix)
(One intermediate revision by one other user not shown)
Line 9: Line 9:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns a list of all DLCs objects the unit is currently using. For example if a unit is inside a vehicle from DLC, it will return the code of that DLC. |= Description
| Returns a list of all DLCs objects the unit is currently using. For example if a unit is inside a vehicle from DLC, it will return the code of that DLC. |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[getPersonUsedDLCs]] unit |= Syntax
| [[getPersonUsedDLCs]] unit |SYNTAX=


|p1=  unit: [[Object]] |= Parameter 1
|p1=  unit: [[Object]] |PARAMETER1=


| [[Array]] of [[Number|Numbers]] |= Return value
| [[Array]] of [[Number|Numbers]] |RETURNVALUE=


|x1= <code>_objects = [[getPersonUsedDLCs]] [[player]];</code>|= Example 1
|x1= <code>_objects = [[getPersonUsedDLCs]] [[player]];</code>|EXAMPLE1=


____________________________________________________________________________________________
____________________________________________________________________________________________


|  [[getDLCs]] [[getObjectDLC]] [[getMissionDLCs]] |= See also
|  [[getDLCs]] [[getObjectDLC]] [[getMissionDLCs]] |SEEALSO=


|mp= {{warning|This command does not work on a dedicated server}} |= MP behaviour
|mp= {{warning|This command does not work on a dedicated server}} |= MP behaviour
Line 40: Line 40:
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Broken Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Broken Scripting Commands|{{uc:{{PAGENAME}}}}]]
[[Category:Command Group: DLC|{{uc:{{PAGENAME}}}}]]

Revision as of 15:40, 7 April 2019

Hover & click on the images for description

Description

Description:
Returns a list of all DLCs objects the unit is currently using. For example if a unit is inside a vehicle from DLC, it will return the code of that DLC.
Multiplayer:
This command does not work on a dedicated server
Groups:
Uncategorised

Syntax

Syntax:
getPersonUsedDLCs unit
Parameters:
unit: Object
Return Value:
Array of Numbers

Examples

Example 1:
_objects = getPersonUsedDLCs player;

Additional Information

See also:
getDLCs getObjectDLC getMissionDLCs

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