BIS fnc createObjectOO: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (pf)
Line 1: Line 1:
 
{{Function|Comments=
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3 |Game name=


|1.00|= Game version
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>
| Instantiates an object of a certain class.|Description=
/*
____________________________________________________________________________________________
File: fn_createObjectOO.sqf


Description:
| [class,params] call [[BIS_fnc_createObjectOO]] |Syntax=
Instantiating an object of a certain class


Parameter(s):
_this select 0: String (class name)
_this select 1: Array (optional parameters for constructor)
Returns:
created Logic object: Object
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p1= class: [[String]] - Class for the OO scripting shell {{Important|Class has to exist in CfgOO}}|Parameter 1=
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_createObjectOO]]; --> |= Syntax
|p2= params: [[Array]] - (Optional, default []) Optional parameters for constructor|Parameter 2=


|p1= |= Parameter 1
| [[Logic]] - Created logic object|Return value=
____________________________________________________________________________________________


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


|x1= <code></code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


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


}}


<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>

Revision as of 14:47, 19 June 2018

Hover & click on the images for description

Description

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

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

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


Notes

Bottom Section