User Tools

Site Tools


arma2:editor_modules:som

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
arma2:editor_modules:som [2009/06/02 07:04] – added SOM details. snakemanarma2:editor_modules:som [2024/08/01 21:02] (current) – links added. snakeman
Line 1: Line 1:
-====== SOM ======+====== ArmA 2 SOM ======
  
-**Secondary Operations Module**+[[https://www.pmctactical.org/forum/viewforum.php?f=50|ArmA 2 Forum]], [[:arma2|ArmA 2 Home]], [[arma2:config|ArmA 2 Config]], [[arma2:file_formats|ArmA 2 File Formats]], [[arma2:missions|ArmA 2 Missions]], [[arma2:modeling|ArmA 2 3D Modeling]], [[arma2:scripting|ArmA 2 Scripting]], [[arma2:terrain|ArmA 2 Terrain]], [[arma2:texturing|ArmA 2 Texturing]], [[arma2:tools|ArmA 2 Tools]]
  
-Its what generates the little side missions in the campaign, but of course, if you run it on an empty map you essentially have a random mission generator. To use it, place the module then synchronize it with the player.+**Secondary Operations Manager**
  
-If you have played the campaign then you know what I'm referring to. What surprised me was that the SOM works for user created mission also. It dynamically creates mission and objectives and enemies depending on where you are on the map. To use it simply place it on the map and synchronize it to the player's squadSimple yet tremendously fun+Its what generates the little side missions in the campaign, but of course, if you run it on an empty map you essentially have a random mission generator.
  
-To create a civilian population, place a Location Module of your choice (City, Camp etc) in a town, then place a Civilian Ambient Module in the same town, synchronize the two GameLogic's, and voila; civilians will be created dynamically from houses in the areaThey will even take jogs and talk to each other!+Usage:\\ 
 +Place the SOM gamelogic on the map, then synchronize it with the player.
  
-There is quite a lot you can configure for the SOM, including adding fully new SecOps. A random mission generator is exactly what the SOM is  There will be more information soon, but some initial global settings:+SOM randomly creates mission and objectives and enemies depending on where you are on the map. 
 + 
 +There is quite a lot you can configure for the SOM, including adding fully new SecOps. A random mission generator is exactly what the SOM is. Some initial global settings:
  
 You can override certain SOM settings by setting a "settings" variable in a SOM (do this during the first 2 seconds of a mission!). In this Array you can send the SOM your custom pool of SecOps for this mission, you can disable the standard H.Q. radio communications, you can set different callsigns and set an initial delay (default is 30 seconds). If you do not want to set all settings, you may pass nil for those that you wish to leave on their default values. A typical settings Array can look like this: You can override certain SOM settings by setting a "settings" variable in a SOM (do this during the first 2 seconds of a mission!). In this Array you can send the SOM your custom pool of SecOps for this mission, you can disable the standard H.Q. radio communications, you can set different callsigns and set an initial delay (default is 30 seconds). If you do not want to set all settings, you may pass nil for those that you wish to leave on their default values. A typical settings Array can look like this:
Line 42: Line 45:
 _som setVariable ["settings", _settings]; _som setVariable ["settings", _settings];
 </code> </code>
 +
 +**Is it possible to have a script or trigger running that once you had completed a certain amount of SOM missions, say 5?**
 +
 +Yes. The SecOps template (04: Combat) uses this concept. The SOM tracks completed / failed SecOps in an internal variable history (Array: Scalar | completed, Scalar | failed).
 +
 +So let's say your SOM is myFirstSOM, you can make your trigger check for:
 +<code cpp>
 +((myFirstSOM getVariable "history") select 0) == 5;
 +</code>
 +
 +Misc notes
 +
 +What is already possible: without modifying the core SOM scripts (not recommended), you can create new SecOps in some add-on and define them in CfgSecOps. The SOM will automatically be able to use them. Eventually there could be a long list of community SecOps if anybody likes making them.
 +
 +To get support:
 +
 +Try to execute in a script after the SOM has started:
 +<code cpp>
 +//Gives one:
 +["tactical_airstrike", player] call BIS_SOM_addSupportRequestFunc;
 +
 +//Gives one of each:
 +[["transport", "supply_drop", "tactical_airstrike", "artillery_barrage"], player] call BIS_SOM_addSupportRequestFunc;
 +
 +//Gives 2 random supports:
 +[2, player] call BIS_SOM_addSupportRequestFunc;
 +</code>
 +
arma2/editor_modules/som.1243926294.txt.gz · Last modified: 2009/06/02 07:04 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.