BIS fnc createObjectOO: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
m (pf) |
||
Line 1: | Line 1: | ||
{{Function|Comments= | |||
{{Function|= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma3 | | | arma3 |Game name= | ||
|1.00| | |1.00|Game version= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Instantiates an object of a certain class.|Description= | ||
____________________________________________________________________________________________ | |||
| [class,params] call [[BIS_fnc_createObjectOO]] |Syntax= | |||
|p1= class: [[String]] - Class for the OO scripting shell {{Important|Class has to exist in CfgOO}}|Parameter 1= | |||
| | |p2= params: [[Array]] - (Optional, default []) Optional parameters for constructor|Parameter 2= | ||
| | | [[Logic]] - Created logic object|Return value= | ||
____________________________________________________________________________________________ | |||
| |= | |x1= <code>["someOOClass", [1,2,3]] [[call]] [[BIS_fnc_createObjectOO]];</code>|Example 1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | | [[BIS_fnc_addClassOO]] |See also= | ||
}} | |||
<h3 style="display:none">Notes</h3> | <h3 style="display:none">Notes</h3> |
Revision as of 13:47, 19 June 2018
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
- 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