Surrender Module – Arma 2

From Bohemia Interactive Community
Jump to navigation Jump to search
(Creation, will need some more work)
 
m (Lou Montana moved page Surrender to Arma 2: Surrender Module: name standard)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:ArmA_2:_Editor_Modules]]
{{GameCategory|arma2|Editor Modules}}


'''Surrender (SRRS)''' module makes AI soldiers surrendering when in confusion, or outnumbered.
'''Surrender (SRRS)''' module makes AI soldiers surrendering when in confusion, or outnumbered.
Line 14: Line 14:


=== Optional parameters ===
=== Optional parameters ===
Set variables to Zone Restriction mudule with desired values:
*'''bordersize = <number>;''' - set the border size, between the "normal" area and the immediate death area
::Example: ''Zora_Module setvariable ["bordersize", 250];''
::Default value: 1000m


Set global variables with desired values:
Set global variables with desired values:
Line 25: Line 20:
::Example: ''BIS_SRRS_Debug = 0;''
::Example: ''BIS_SRRS_Debug = 0;''
::Default value: -1
::Default value: -1
*'''BIS_SRRS_ENABLED = <bool>;''' - activate the script
*'''BIS_SRRS_FOR_VEHICLES_ENABLED = <bool>;''' -
*'''BIS_SRRS_OVERRIDE_VEHICLES = <array>;''' -
*''' = <>;''' -
*''' = <>;''' -
<!-- *''' = <>;''' - -->


== Behaviour ==
== Behaviour ==

Latest revision as of 04:45, 1 January 2021


Surrender (SRRS) module makes AI soldiers surrendering when in confusion, or outnumbered.

Initialization

Paths

Editor:

Modules (F7) > Surrender

Data:

ca\modules\SRRS

Editor setup

Optional parameters

Set global variables with desired values:

  • BIS_SRRS_Debug = <number>; - allow or not debug - -1 for no debug, 0 for all debug, and 1 for "loop processing"
Example: BIS_SRRS_Debug = 0;
Default value: -1
  • BIS_SRRS_ENABLED = <bool>; - activate the script
  • BIS_SRRS_FOR_VEHICLES_ENABLED = <bool>; -
  • BIS_SRRS_OVERRIDE_VEHICLES = <array>; -
  • = <>; -
  • = <>; -


Behaviour

  • Soldiers surrendering will drop their weapons and put their hands behind their head
  • Soldiers surrendering will be setCaptive, disableAI "move", will leave their group, will disembark from their vehicle if they have one and won't be able to climb in another
  • Group leaders can tell their soldiers to surrender
  • You'll have to place on the map at least one unit of the faction you will create with this module, or setFriend their side, so the created patrols attack their enemies

Known bugs

  • Sometimes, the soldier will lower his hands. Don't worry, he's harmless :-)