BIS fnc createObjectOO: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN -->  <!-- Note Section END --> </dl>" to "")  | 
				Lou Montana (talk | contribs)  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  | {{Function  | ||
| arma3   | | arma3  | ||
|1.00  | |1.00  | ||
|gr1 = OO   | |gr1 = OO  | ||
| Instantiates an object of a certain class.  | | Instantiates an object of a certain class.  | ||
| [class,params] call [[BIS_fnc_createObjectOO]]   | | [class,params] call [[BIS_fnc_createObjectOO]]  | ||
|p1= class: [[String]] - Class for the OO scripting shell {{Important|Class has to exist in CfgOO}}  | |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  | |p2= params: [[Array]] - (Optional, default []) Optional parameters for constructor  | ||
| [[Logic]] - Created logic object  | | [[Logic]] - Created logic object  | ||
|x1= <code>["someOOClass", [1,2,3]] [[call]] [[BIS_fnc_createObjectOO]];</code>  | |x1= <code>["someOOClass", [1,2,3]] [[call]] [[BIS_fnc_createObjectOO]];</code>  | ||
| [[BIS_fnc_addClassOO]], [[BIS_fnc_validateParametersOO]]   | | [[BIS_fnc_addClassOO]], [[BIS_fnc_validateParametersOO]]  | ||
}}  | }}  | ||
Revision as of 22:36, 17 January 2021
Description
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
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