Leaflets – Arma 3

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Fix example)
 
(15 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[File:a3_orange_leaflets_drone.gif|512px|thumb|A drone dropping leaflets]]
Propaganda leaflets are a new feature introduced in [[Arma 3 Laws of War]] DLC ({{GVI|arma3|1.76}})
Propaganda leaflets are a new feature introduced in [[Arma 3 Laws of War]] DLC ({{GVI|arma3|1.76}})
[[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 [[addWeapon]] "Bomb_Leaflets";
To add leaflets to an Utility Drone, use pylons settings in [[:Category:Eden Editor|Eden Editor]]:
 
[[File:a3 orange leaflets pylons.jpg|240px]]
 
Alternatively, you can add them by script:
<sqf>
myDrone addMagazine "1Rnd_Leaflets_West_F";
myDrone addWeapon "Bomb_Leaflets";
</sqf>
Several leaflet types exist apart from ''West'', see the table below.
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:
myDrone [[fire]] "Bomb_Leaflets";
<sqf>myDrone fire "Bomb_Leaflets";</sqf>


=== Custom 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]]:
 
<syntaxhighlight lang="cpp">class CfgLeaflets
Leaflet visuals are tied to specific magazine type. They are defined in global [[Config.cpp]], but can be overridden in [[Description.ext]]:
<syntaxhighlight lang="cpp">
class CfgLeaflets
{
{
class West // Configuration for 1Rnd_Leaflets_West_F
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
text = "Text of the leaflet"; // text shown when previewing the leaflet full-screen. Should ideally be localised, 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. Optional; When undefined, generic white leaflet is used
model = "myLeaflet.p3d"; // in-flight model. Optional; When undefined, generic white leaflet is used
}
};
};</syntaxhighlight>
};
</syntaxhighlight>


=== Leaflet Classes ===
=== Leaflet Classes ===
{| class="wikitable"
{| class="wikitable"
|-
! Magazine class
! Magazine class
! CfgLeaflets class
! CfgLeaflets class
! Default Texture
! Default Texture
|-
|-
| <code>1Rnd_Leaflets_West_F</code>
|
| <code>West</code>
1Rnd_Leaflets_West_F
|
West
| [[File:a3 orange cfgleaflets west ca.jpg|128px]]
| [[File:a3 orange cfgleaflets west ca.jpg|128px]]
|-
|-
| <code>1Rnd_Leaflets_East_F</code>
|
| <code>East</code>
1Rnd_Leaflets_East_F
|
East
| [[File:a3 orange cfgleaflets east ca.jpg|128px]]
| [[File:a3 orange cfgleaflets east ca.jpg|128px]]
|-
|-
| <code>1Rnd_Leaflets_Guer_F</code>
|
| <code>Guer</code>
1Rnd_Leaflets_Guer_F
|
Guer
| [[File:a3 orange cfgleaflets guer ca.jpg|128px]]
| [[File:a3 orange cfgleaflets guer ca.jpg|128px]]
|-
|-
| <code>1Rnd_Leaflets_Civ_F</code>
|
| <code>Civ</code>
1Rnd_Leaflets_Civ_F
|
Civ
| [[File:a3 orange cfgleaflets civ ca.jpg|128px]]
| [[File:a3 orange cfgleaflets civ ca.jpg|128px]]
|-
|-
| <code>1Rnd_Leaflets_Custom_01_F</code>
|
| <code>Custom_01</code>
1Rnd_Leaflets_Custom_01_F
|
Custom_01
| ''Empty''
| ''Empty''
|-
|-
| <code>1Rnd_Leaflets_Custom_02_F</code>
|
| <code>Custom_02</code>
1Rnd_Leaflets_Custom_02_F
|
Custom_02
| ''Empty''
| ''Empty''
|-
|-
| <code>1Rnd_Leaflets_Custom_03_F</code>
|
| <code>Custom_03</code>
1Rnd_Leaflets_Custom_03_F
|
Custom_03
| ''Empty''
| ''Empty''
|-
|-
| <code>1Rnd_Leaflets_Custom_04_F</code>
|
| <code>Custom_04</code>
1Rnd_Leaflets_Custom_04_F
|
Custom_04
| ''Empty''
| ''Empty''
|-
|-
| <code>1Rnd_Leaflets_Custom_05_F</code>
|
| <code>Custom_05</code>
1Rnd_Leaflets_Custom_05_F
|
Custom_05
| ''Empty''
| ''Empty''
|-
|-
| <code>1Rnd_Leaflets_Custom_06_F</code>
|
| <code>Custom_06</code>
1Rnd_Leaflets_Custom_06_F
|
Custom_06
| ''Empty''
| ''Empty''
|-
|-
| <code>1Rnd_Leaflets_Custom_07_F</code>
|
| <code>Custom_07</code>
1Rnd_Leaflets_Custom_07_F
|
Custom_07
| ''Empty''
| ''Empty''
|-
|-
| <code>1Rnd_Leaflets_Custom_08_F</code>
|
| <code>Custom_08</code>
1Rnd_Leaflets_Custom_08_F
|
Custom_08
| ''Empty''
| ''Empty''
|-
|-
| <code>1Rnd_Leaflets_Custom_09_F</code>
|
| <code>Custom_09</code>
1Rnd_Leaflets_Custom_09_F
|
Custom_09
| ''Empty''
| ''Empty''
|-
|-
| <code>1Rnd_Leaflets_Custom_10_F</code>
|
| <code>Custom_10</code>
1Rnd_Leaflets_Custom_10_F
|
Custom_10
| ''Empty''
| ''Empty''
|}
|}


=== Leaflet Preview ===
=== 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.
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.''
<gallery>
<gallery>
File:a3 orange leaflets preview.jpg|Leaflet preview
File:a3 orange leaflets preview.jpg|Leaflet preview
Line 96: Line 135:
</gallery>
</gallery>


===Scripting Functions===
=== Scripting Functions ===
*[[BIS_fnc_initLeaflet]]
 
*[[BIS_fnc_initInspectable]]
* [[BIS_fnc_initLeaflet]]
[[Category:Arma 3: Editing|LEAFLETS]]
* [[BIS_fnc_initInspectable]]
 
 
{{GameCategory|arma3|Editing}}

Latest revision as of 18:15, 14 March 2024

A drone dropping leaflets

Propaganda leaflets are a new feature introduced in Arma 3 Laws of War DLC (Arma 3 logo black.png1.76)

Mission Usage

Leaflets are a special weapon which can be fired both by a player or AI.

To add leaflets to an Utility Drone, use pylons settings in Eden Editor:

a3 orange leaflets pylons.jpg

Alternatively, you can add them by script:

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 overridden 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. Should ideally be localised, 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

Magazine class CfgLeaflets class Default Texture
1Rnd_Leaflets_West_F
West
a3 orange cfgleaflets west ca.jpg
1Rnd_Leaflets_East_F
East
a3 orange cfgleaflets east ca.jpg
1Rnd_Leaflets_Guer_F
Guer
a3 orange cfgleaflets guer ca.jpg
1Rnd_Leaflets_Civ_F
Civ
a3 orange cfgleaflets civ ca.jpg
1Rnd_Leaflets_Custom_01_F
Custom_01
Empty
1Rnd_Leaflets_Custom_02_F
Custom_02
Empty
1Rnd_Leaflets_Custom_03_F
Custom_03
Empty
1Rnd_Leaflets_Custom_04_F
Custom_04
Empty
1Rnd_Leaflets_Custom_05_F
Custom_05
Empty
1Rnd_Leaflets_Custom_06_F
Custom_06
Empty
1Rnd_Leaflets_Custom_07_F
Custom_07
Empty
1Rnd_Leaflets_Custom_08_F
Custom_08
Empty
1Rnd_Leaflets_Custom_09_F
Custom_09
Empty
1Rnd_Leaflets_Custom_10_F
Custom_10
Empty

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.

Scripting Functions