BIS fnc createObjectOO: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "(Optional, default {{hl|[]}})" to "(Optional, default <sqf inline>[]</sqf>)")
 
(26 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= OO


|gr1 = OO |GROUP1=
|descr= Instantiates an object of a certain class.
____________________________________________________________________________________________


| Instantiates an object of a certain class.|Description=
|s1= [class,params] call [[BIS_fnc_createObjectOO]]
____________________________________________________________________________________________


| [class,params] call [[BIS_fnc_createObjectOO]] |Syntax=
|p1= class: [[String]] - class for the OO scripting shell {{Feature|important|Class has to exist in CfgOO}}


|p2= params: [[Array]] - (Optional, default <sqf inline>[]</sqf>) optional parameters for constructor


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


|p2= params: [[Array]] - (Optional, default []) Optional parameters for constructor|Parameter 2=
|x1= <sqf>["someOOClass", [1,2,3]] call BIS_fnc_createObjectOO;</sqf>


| [[Logic]] - Created logic object|Return value=
|seealso= [[BIS_fnc_addClassOO]] [[BIS_fnc_validateParametersOO]]
____________________________________________________________________________________________
 
|x1= <code>["someOOClass", [1,2,3]] [[call]] [[BIS_fnc_createObjectOO]];</code>|Example 1=
 
____________________________________________________________________________________________
 
| [[BIS_fnc_addClassOO]], [[BIS_fnc_validateParametersOO]] |See also=
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: OO|{{uc:createObjectOO}}]]
[[Category:Functions|{{uc:createObjectOO}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:createObjectOO}}]]

Latest revision as of 18:09, 8 November 2023

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