Difference between revisions of "getPersonUsedDLCs"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game name" to "|Game name=")
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
+
{{Command|Comments=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| arma3 |= Game name
+
| arma3 |Game name=
|1.36|= Game version
+
 
|arg= global|= Arguments in MP
+
|1.36|Game version=
 +
 
 +
|arg= global|Multiplayer Arguments=
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| 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.  
+
| 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=
{{warning | This command is broken and doesnt work on dedicated server}}|= Description
 
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| '''getPersonUsedDLCs''' unit |= Syntax
+
| [[getPersonUsedDLCs]] unit |SYNTAX=
 
 
|p1=  unit: [[Object]] |=  
 
  
| [[Array]] |= RETURNVALUE
+
|p1=  unit: [[Object]] |PARAMETER1=
  
 +
| [[Array]] of [[Number|Numbers]] |RETURNVALUE=
  
|x1= <code>_objects = [[getPersonUsedDLCs]] [[player]];</code>|= EXAMPLE1
+
|x1= <code>_objects = [[getPersonUsedDLCs]] [[player]];</code>|EXAMPLE1=
  
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
|  [[getDLCs]] |= SEEALSO
+
|  [[getDLCs]] [[getObjectDLC]] [[getMissionDLCs]] |SEEALSO=
  
| |= MPBEHAVIOUR
+
|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}}}}]]

Latest revision as of 20:48, 31 August 2019

Introduced with Arma 3 version 1.36
  Arguments of this scripting command don't have to be local to the client the command is executed on

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.36

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.

Syntax

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

Examples

Example 1:
_objects = getPersonUsedDLCs player;

Additional Information

Multiplayer:
This command does not work on a dedicated server
See also:
getDLCs getObjectDLC getMissionDLCs

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section