Author: Foxhound
Author Website:

Requirements: No addons required

Version: 1.0

Short description: A simple way to adjust the enemy force depending on the number of players in a MP mission and also add some randomness to the whole thing.

Date: 2011-12-05 21:00


Comments: (0)
Rating:



 





Random Adjust fsm

by
Wiggum


Description:
The setup I used for the DEMO mission is just a example!
In this example it would be a 6 player Coop mission and I want to randomly delete 2 units of the array [e1,e2,e3,e4] if there are only 3 or 4 players.
As you can see I created a second trigger that would fire if there are 2 or less players. This trigger would delete all units of the array.
Just delete one of the playable units of the player group and you will see it.

The script works for SP and MP !
In SP all "playable" units + the player are counted as players.
In MP all human players + active AI are counted as players, deactivate AI if you want to adjust counting only human players !
You have to use triggers with "count switchableUnits" for a SP mission and "count playableUnits" in MP, but as always it does not matter how you call the script !


Installation / Usage:
Copy the folder inside the .zip to your Documents/ArmA2/missions folder
Start the Editor and load the Desert map
Go to "Load" and load the Random_Adjust_DEMO

To use the script in you mission just copy the Random_Adjust.fsm into your mission folder.
You only need the .fsm file, nothing else !


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!



Tags: No tags