{"name":"BIS_fnc_initLeaflet","operator":null,"title":"BIS fnc initLeaflet","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_initLeaflet","revid":376288,"updated":"2025-09-29T12:43:15Z","groups":["Interaction"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.76"}],"since":{"game":"arma3","name":"Arma 3","version":"1.76"},"arma3_since":"1.76","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Initialise interactive leaflet.","syntaxes":[{"syntax":"[mode, parameters] call BIS_fnc_initLeaflet","since":null,"effect":null,"exec":null,"params":[{"name":"mode","type":"String","optional":false,"default":null,"description":"\"init\" for scripted initialisation, other mode (\"fired\") is used when leaflets are fired as a weapon","types":["String"],"since":null,"text":"mode: String - \"init\" for scripted initialisation, other mode (\"fired\") is used when leaflets are fired as a weapon"},{"name":"parameters","type":"Array in format:","optional":false,"default":null,"description":"Array in format:\n- [leaflet, texture, text]:\n  - leaflet: Object - the leaflet object itself\n  - texture: String - texture path\n  - text: String - localized text, shown when previewing the leaflet in full screen\n- [leaflet, cfgLeafletsClass]:\n  - leaflet: Object - the leaflet object itself\n  - cfgLeafletsClass: String - class name\n- [position, cfgLeafletsClass]:\n  - position: Array format Position - desired placement position (see createVehicle)\n  - cfgLeafletsClass: String - class name","types":["Array"],"since":null,"text":"parameters: Array in format:\n- [leaflet, texture, text]:\n  - leaflet: Object - the leaflet object itself\n  - texture: String - texture path\n  - text: String - localized text, shown when previewing the leaflet in full screen\n- [leaflet, cfgLeafletsClass]:\n  - leaflet: Object - the leaflet object itself\n  - cfgLeafletsClass: String - class name\n- [position, cfgLeafletsClass]:\n  - position: Array format Position - desired placement position (see createVehicle)\n  - cfgLeafletsClass: String - class name"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[{"text":"```sqf\n[\"init\", [myLeaflet, \"#(argb,8,8,3)color(1,1,0,1)\", \"Yellow pages\"]] call BIS_fnc_initLeaflet;\n```","code":["[\"init\", [myLeaflet, \"#(argb,8,8,3)color(1,1,0,1)\", \"Yellow pages\"]] call BIS_fnc_initLeaflet;"]},{"text":"```sqf\n[\"init\", [myLeaflet, \"Custom_02\"]] call BIS_fnc_initLeaflet;\n```","code":["[\"init\", [myLeaflet, \"Custom_02\"]] call BIS_fnc_initLeaflet;"]},{"text":"```sqf\n[\"init\", [myLeaflet, \"West\"]] call BIS_fnc_initLeaflet;\n```","code":["[\"init\", [myLeaflet, \"West\"]] call BIS_fnc_initLeaflet;"]},{"text":"```sqf\n[\"init\", [getPosATL player, \"Custom_02\"]] call BIS_fnc_initLeaflet;\n```","code":["[\"init\", [getPosATL player, \"Custom_02\"]] call BIS_fnc_initLeaflet;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["Arma 3: Leaflets","BIS_fnc_initInspectable"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Interaction","Functions","Introduced with Arma 3 version 1.76"],"docblock":null,"filled_from_docblock":[]}