BIS fnc createObjectOO: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...)
Line 1: Line 1:
{{Function|Comments=
{{Function


| arma3 |Game name=
| arma3


|1.00|Game version=
|1.00


|gr1 = OO |GROUP1=
|gr1 = OO


| Instantiates an object of a certain class.|Description=
| Instantiates an object of a certain class.


| [class,params] call [[BIS_fnc_createObjectOO]] |Syntax=
| [class,params] call [[BIS_fnc_createObjectOO]]




|p1= class: [[String]] - Class for the OO scripting shell {{Important|Class has to exist in CfgOO}}|Parameter 1=
|p1= class: [[String]] - Class for the OO scripting shell {{Important|Class has to exist in CfgOO}}


|p2= params: [[Array]] - (Optional, default []) Optional parameters for constructor|Parameter 2=
|p2= params: [[Array]] - (Optional, default []) Optional parameters for constructor


| [[Logic]] - Created logic object|Return value=
| [[Logic]] - Created logic object


|x1= <code>["someOOClass", [1,2,3]] [[call]] [[BIS_fnc_createObjectOO]];</code>|Example 1=
|x1= <code>["someOOClass", [1,2,3]] [[call]] [[BIS_fnc_createObjectOO]];</code>




| [[BIS_fnc_addClassOO]], [[BIS_fnc_validateParametersOO]] |See also=
| [[BIS_fnc_addClassOO]], [[BIS_fnc_validateParametersOO]]
}}
}}



Revision as of 23:36, 17 January 2021

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_addClassOOBIS_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


Bottom Section