BIS fnc createObjectOO: Difference between revisions
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ")  | 
				Lou Montana (talk | contribs)  m (Text replacement - "(Optional, default {{hl|[]}})" to "(Optional, default <sqf inline>[]</sqf>)")  | 
				||
| (19 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{RV|type=function  | {{RV|type=function  | ||
| arma3  | |game1= arma3  | ||
|version1= 1.00  | |||
|  | |gr1= OO  | ||
|  | |descr= Instantiates an object of a certain class.  | ||
|   | |s1= [class,params] call [[BIS_fnc_createObjectOO]]  | ||
|   | |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  | ||
|  | |r1= [[Logic]] - created logic object  | ||
| [[  | |x1= <sqf>["someOOClass", [1,2,3]] call BIS_fnc_createObjectOO;</sqf>  | ||
|  | |seealso= [[BIS_fnc_addClassOO]] [[BIS_fnc_validateParametersOO]]  | ||
}}  | }}  | ||
Latest revision as of 18:09, 8 November 2023
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:
 
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