BIS fnc initLeaflet: Difference between revisions
Jump to navigation
Jump to search
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.76 | |1.76 | ||
|gr1 = Interaction | |gr1 = Interaction | ||
| Initialize interactive leaflet. | | Initialize interactive leaflet. | ||
| [mode, parameters] call [[BIS_fnc_initLeaflet]] | | [mode, parameters] call [[BIS_fnc_initLeaflet]] | ||
|p1= mode: [[String]] - "init" for scripted initialization, other modes are used when leaflets are fired as a weapon | |p1= mode: [[String]] - "init" for scripted initialization, other modes are used when leaflets are fired as a weapon | ||
|p2= parameters: [[Array]] to format: | |p2= parameters: [[Array]] to format: | ||
Line 20: | Line 20: | ||
* [leaflet, cfgLeafletsClass] | * [leaflet, cfgLeafletsClass] | ||
** leaflet: [[Object]] - the leaflet object itself | ** leaflet: [[Object]] - the leaflet object itself | ||
** cfgLeafletsClass: [[String]] - class name as string | ** cfgLeafletsClass: [[String]] - class name as string | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>["init", [myLeaflet, "#(argb,8,8,3)color(1,1,0,1)", "Yellow pages"]] [[call]] [[BIS__fnc_initLeaflet]];</code> | |x1= <code>["init", [myLeaflet, "#(argb,8,8,3)color(1,1,0,1)", "Yellow pages"]] [[call]] [[BIS__fnc_initLeaflet]];</code> | ||
|x2= <code>["init", [myLeaflet,"Custom_02"]] [[call]] [[BIS_fnc_initLeaflet]];</code> | |x2= <code>["init", [myLeaflet,"Custom_02"]] [[call]] [[BIS_fnc_initLeaflet]];</code> | ||
|x3= <code>["init", [myLeaflet,"West"]] [[call]] [[BIS_fnc_initLeaflet]];</code> | |x3= <code>["init", [myLeaflet,"West"]] [[call]] [[BIS_fnc_initLeaflet]];</code> | ||
| [[Arma 3 Leaflets]], [[BIS_fnc_initInspectable]] | | [[Arma 3 Leaflets]], [[BIS_fnc_initInspectable]] | ||
}} | }} | ||
Revision as of 23:11, 17 January 2021
Description
- Description:
- Initialize interactive leaflet.
- Execution:
- call
- Groups:
- Interaction
Syntax
- Syntax:
- [mode, parameters] call BIS_fnc_initLeaflet
- Parameters:
- mode: String - "init" for scripted initialization, other modes are used when leaflets are fired as a weapon
- parameters: Array to format:
- Return Value:
- Nothing
Examples
- Example 1:
["init", [myLeaflet, "#(argb,8,8,3)color(1,1,0,1)", "Yellow pages"]] call BIS__fnc_initLeaflet;
- Example 2:
["init", [myLeaflet,"Custom_02"]] call BIS_fnc_initLeaflet;
- Example 3:
["init", [myLeaflet,"West"]] call BIS_fnc_initLeaflet;
Additional Information
- See also:
- Arma 3 LeafletsBIS_fnc_initInspectable
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