BIS fnc createObjectOO: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )O([a-z])" to "$1o$3") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2") |
||
Line 10: | Line 10: | ||
|s1= [class,params] call [[BIS_fnc_createObjectOO]] | |s1= [class,params] call [[BIS_fnc_createObjectOO]] | ||
|p1= class: [[String]] - | |p1= class: [[String]] - class for the OO scripting shell {{Feature|important|Class has to exist in CfgOO}} | ||
|p2= params: [[Array]] - (Optional, default {{hl|[]}}) optional parameters for constructor | |p2= params: [[Array]] - (Optional, default {{hl|[]}}) optional parameters for constructor | ||
|r1= [[Logic]] - | |r1= [[Logic]] - created logic object | ||
|x1= <sqf>["someOOClass", [1,2,3]] call BIS_fnc_createObjectOO;</sqf> | |x1= <sqf>["someOOClass", [1,2,3]] call BIS_fnc_createObjectOO;</sqf> |
Revision as of 13:59, 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