Leaflets – Arma 3
Jump to navigation
Jump to search
(added scripting function) |
mNo edit summary |
||
Line 2: | Line 2: | ||
[[File:a3_orange_leaflets_drone.gif|300px]] | [[File:a3_orange_leaflets_drone.gif|300px]] | ||
=== Mission Usage === | === Mission Usage === | ||
Leaflets are a special weapon which can be fired both by a player or AI. | Leaflets are a special weapon which can be fired both by a player or AI. | ||
myDrone [[addMagazine]] "1Rnd_Leaflets_West_F"; | myDrone [[addMagazine]] "1Rnd_Leaflets_West_F"; | ||
myDrone [[addWeapon]] "Bomb_Leaflets"; | myDrone [[addWeapon]] "Bomb_Leaflets"; | ||
Several leaflet types exist apart from ''West'', see the table below. | |||
To let AI drop the leaflets, simply fire the weapon: | To let AI drop the leaflets, simply fire the weapon: | ||
Line 24: | Line 19: | ||
text = "Text of the leaflet"; // Text shown when previewing the leaflet full-screen. Ideally should be localized, so even player who cannot read the image can get the information | text = "Text of the leaflet"; // Text shown when previewing the leaflet full-screen. Ideally should be localized, so even player who cannot read the image can get the information | ||
texture = "myLeaflet_ca.paa"; // Leaflet texture shown when previewing the leaflet full-screen | texture = "myLeaflet_ca.paa"; // Leaflet texture shown when previewing the leaflet full-screen | ||
model = "myLeaflet.p3d"; // In-flight model. | model = "myLeaflet.p3d"; // In-flight model. Optional; When undefined, generic white leaflet is used | ||
} | } | ||
};</syntaxhighlight> | };</syntaxhighlight> | ||
=== Leaflet Classes === | |||
{| class="wikitable" | |||
|- | |||
! Magazine class | |||
! CfgLeaflets class | |||
! Default Texture | |||
|- | |||
| <code>1Rnd_Leaflets_West_F</code> | |||
| <code>West</code> | |||
| [[File:a3 orange cfgleaflets west ca.jpg|128px]] | |||
|- | |||
| <code>1Rnd_Leaflets_East_F</code> | |||
| <code>East</code> | |||
| [[File:a3 orange cfgleaflets east ca.jpg|128px]] | |||
|- | |||
| <code>1Rnd_Leaflets_Guer_F</code> | |||
| <code>Guer</code> | |||
| [[File:a3 orange cfgleaflets guer ca.jpg|128px]] | |||
|- | |||
| <code>1Rnd_Leaflets_Civ_F</code> | |||
| <code>Civ</code> | |||
| [[File:a3 orange cfgleaflets civ ca.jpg|128px]] | |||
|- | |||
| <code>1Rnd_Leaflets_Custom_01_F</code> | |||
| <code>Custom_01</code> | |||
| ''Empty'' | |||
|- | |||
| <code>1Rnd_Leaflets_Custom_02_F</code> | |||
| <code>Custom_02</code> | |||
| ''Empty'' | |||
|- | |||
| <code>1Rnd_Leaflets_Custom_03_F</code> | |||
| <code>Custom_03</code> | |||
| ''Empty'' | |||
|- | |||
| <code>1Rnd_Leaflets_Custom_04_F</code> | |||
| <code>Custom_04</code> | |||
| ''Empty'' | |||
|- | |||
| <code>1Rnd_Leaflets_Custom_05_F</code> | |||
| <code>Custom_05</code> | |||
| ''Empty'' | |||
|- | |||
| <code>1Rnd_Leaflets_Custom_06_F</code> | |||
| <code>Custom_06</code> | |||
| ''Empty'' | |||
|- | |||
| <code>1Rnd_Leaflets_Custom_07_F</code> | |||
| <code>Custom_07</code> | |||
| ''Empty'' | |||
|- | |||
| <code>1Rnd_Leaflets_Custom_08_F</code> | |||
| <code>Custom_08</code> | |||
| ''Empty'' | |||
|- | |||
| <code>1Rnd_Leaflets_Custom_09_F</code> | |||
| <code>Custom_09</code> | |||
| ''Empty'' | |||
|- | |||
| <code>1Rnd_Leaflets_Custom_10_F</code> | |||
| <code>Custom_10</code> | |||
| ''Empty'' | |||
|} | |||
=== Leaflet Preview === | === Leaflet Preview === | ||
Line 39: | Line 98: | ||
===Scripting Functions=== | ===Scripting Functions=== | ||
*[[BIS_fnc_initLeaflet]] | *[[BIS_fnc_initLeaflet]] | ||
*[[BIS_fnc_initIspectable]] | |||
[[Category:Arma 3: Editing|LEAFLETS]] | [[Category:Arma 3: Editing|LEAFLETS]] |
Revision as of 07:27, 6 September 2017
Propaganda leaflets are a new feature introduced in Arma 3 Laws of War DLC (1.76)
Mission Usage
Leaflets are a special weapon which can be fired both by a player or AI.
myDrone addMagazine "1Rnd_Leaflets_West_F"; myDrone addWeapon "Bomb_Leaflets";
Several leaflet types exist apart from West, see the table below.
To let AI drop the leaflets, simply fire the weapon:
myDrone fire "Bomb_Leaflets";
Custom Leaflets
Leaflet visuals are tied to specific magazine type. They are defined in global Config.cpp, but can be overriden in Description.ext:
class CfgLeaflets
{
class West // Configuration for 1Rnd_Leaflets_West_F
{
text = "Text of the leaflet"; // Text shown when previewing the leaflet full-screen. Ideally should be localized, so even player who cannot read the image can get the information
texture = "myLeaflet_ca.paa"; // Leaflet texture shown when previewing the leaflet full-screen
model = "myLeaflet.p3d"; // In-flight model. Optional; When undefined, generic white leaflet is used
}
};
Leaflet Classes
Leaflet Preview
Once a leaflet falls on the ground, it can be inspected using hold action. It will bring up a full-screen leaflet preview with the ability to show localized text of the leaflet.
The inspect action cannot be currently added by script, but it's planned to have such option available for the final Laws of War DLC release.