Difference between revisions of "Custom Blacklists"

From ALiVE Wiki
Jump to: navigation, search
Line 3: Line 3:
 
Note that to completely remove things like AA from your mission, you will need to blacklist all AA units, vehicles and any Groups that have those classes as well.
 
Note that to completely remove things like AA from your mission, you will need to blacklist all AA units, vehicles and any Groups that have those classes as well.
  
 +
 +
Syntax:
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
 +
ALIVE_MODULE_BLACKLIST = ["classname","classname"];
 +
</syntaxhighlight>
  
Syntax:  ALIVE_MODULE_BLACKLIST = ["classname","classname"];
+
'''Variables'''
 
+
Variables:
+
  
 
ALiVE_MIL_CQB_CUSTOM_STRATEGICHOUSES - Define your custom strategic house classes for CQB (rest will be regular houses).
 
ALiVE_MIL_CQB_CUSTOM_STRATEGICHOUSES - Define your custom strategic house classes for CQB (rest will be regular houses).
Line 20: Line 22:
  
  
Example (don't use these classenames, they're just an example)
+
'''Example'''
 +
(Don't use these classnames, they're just an example)
  
 +
<syntaxhighlight lang="php">
 
ALiVE_MIL_CQB_CUSTOM_UNITBLACKLIST = ["O_G_soldier_AA","O_G_soldier_AA_1"]; ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST = ["O_G_soldier_AA","O_G_soldier_AA_1"];
 
ALiVE_MIL_CQB_CUSTOM_UNITBLACKLIST = ["O_G_soldier_AA","O_G_soldier_AA_1"]; ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST = ["O_G_soldier_AA","O_G_soldier_AA_1"];
 
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
  
 
It is technically possible to overwrite the entire staticdata.sqf but it doesn't appear to be working very well at the moment - see the Discussion page for more info.
 
It is technically possible to overwrite the entire staticdata.sqf but it doesn't appear to be working very well at the moment - see the Discussion page for more info.
  
 
[[Category: Tutorials]]
 
[[Category: Tutorials]]

Revision as of 05:09, 18 April 2015

ALiVE already has a blacklist of units, groups and buildings that have no business being in a military environment. Mission editors can choose to blacklist additional items using the variables below. The variables can be entered in any module init field, such as ALiVE (Required).

Note that to completely remove things like AA from your mission, you will need to blacklist all AA units, vehicles and any Groups that have those classes as well.


Syntax:

ALIVE_MODULE_BLACKLIST = ["classname","classname"];

Variables

ALiVE_MIL_CQB_CUSTOM_STRATEGICHOUSES - Define your custom strategic house classes for CQB (rest will be regular houses).

ALiVE_MIL_CQB_CUSTOM_UNITBLACKLIST - Exclude unit classes from CQB

ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST - Exclude unit classes from Military Placement spawns

ALiVE_PLACEMENT_CUSTOM_VEHICLEBLACKLIST - Exclude vehicle classes from Military Placement spawns

ALiVE_PLACEMENT_CUSTOM_GROUPBLACKLIST - Exclude group classes from Military Placement spawns


Example (Don't use these classnames, they're just an example)

ALiVE_MIL_CQB_CUSTOM_UNITBLACKLIST = ["O_G_soldier_AA","O_G_soldier_AA_1"]; ALiVE_PLACEMENT_CUSTOM_UNITBLACKLIST = ["O_G_soldier_AA","O_G_soldier_AA_1"];


It is technically possible to overwrite the entire staticdata.sqf but it doesn't appear to be working very well at the moment - see the Discussion page for more info.