BIS_fnc_createObjectOO

From Bohemia Interactive Community
Revision as of 18:09, 8 November 2023 by Lou Montana (talk | contribs) (Text replacement - "(Optional, default {{hl|[]}})" to "(Optional, default <sqf inline>[]</sqf>)")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Instantiates an object of a certain class.
Execution:
call
Groups:
OO

Syntax

Syntax:
[class,params] call BIS_fnc_createObjectOO
Parameters:
class: String - class for the OO scripting shell
Class has to exist in CfgOO
params: Array - (Optional, default []) optional parameters for constructor
Return Value:
Logic - created logic object

Examples

Example 1:
["someOOClass", [1,2,3]] call BIS_fnc_createObjectOO;

Additional Information

See also:
BIS_fnc_addClassOO BIS_fnc_validateParametersOO

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