BIS fnc initLeaflet: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[[cC]ategory:[fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
m (Text replacement - "\[\[[cC]ategory:\{\{Name\|arma3\}\}: [fF]unctions\|\{\{uc:[a-z A-Z_]*\}\}\]\]" to "")
Line 32: Line 32:
| [[Arma 3 Leaflets]], [[BIS_fnc_initInspectable]]
| [[Arma 3 Leaflets]], [[BIS_fnc_initInspectable]]
}}
}}
[[Category:{{Name|arma3}}: Functions|{{uc:initLeaflet}}]]

Revision as of 02:18, 2 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
Interaction

Syntax

Syntax:
Syntax needed
Parameters:
mode: String - "init" for scripted initialization, other modes are used when leaflets are fired as a weapon
parameters: Array to format:
  • [leaflet, texture, text]
    • leaflet: Object - the leaflet object itself
    • texture: String - texture path
    • text: String - localized text, shown when previewing the leaflet in full screen
  • [leaflet, cfgLeafletsClass]
    • leaflet: Object - the leaflet object itself
    • cfgLeafletsClass: String - class name as string
Return Value:
Return value needed

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:
See also needed

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