getObjectDLC

From Bohemia Interactive Community
Jump to: navigation, search
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 appID of the DLC the object belongs to or nil if object is vanilla.

Syntax

Syntax:
getObjectDLC obj
Parameters:
obj: Object
Return Value:
Number or Nothing

Examples

Example 1:
_appID = getObjectDLC cursorTarget; if (!isNil "_appID") then { hint format ["This object belongs to DLC with id: %1", _appID]; } else { hint "This object is vanilla"; };

Additional Information

Multiplayer:
-
See also:
getDLCs getPersonUsedDLCs 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