1 post / 0 new
Last post
Wolffy.au
Offline
Joined: 24/06/2009
Random Group Demo - v2.0

This mission is to demonstrate the use of the random group script which includes random spawning of Infantry, Motorised, Mechanised and Armoured groups.

Specific factions or sides can be optionally specified. Use the radio commands for teleport and camera functions.


Created by: (AEF)Wolffy.au [2CAV] & (AEF)Odin [2CAV]


Usage:
To use it, put the following in the INIT line of Game Logic objects:


Default EAST side any faction:
call {[position this, "Infantry"] execVM "crB_scripts\crB_randomGroup.sqf";};
Where "Infantry" can be "Infantry", "Motorized", "Mechanized", "Armored" or "Air".


Specific side any faction:
call {[position this, "Infantry", resistance] execVM "crB_scripts\crB_randomGroup.sqf";};
Where resistance can be east, west, resistance or civilian.


Specific faction:
call {[position this, "Infantry", "ACE_USARMY"] execVM "crB_scripts\crB_randomGroup.sqf";};
Where "ACE_USARMY" can be any valid faction including those from add-ons.


Specific factions:
call {[position this, "Infantry", ["ACE_USARMY_DESERT", "ACE_USMC_DESERT"]] execVM "crB_scripts\crB_randomGroup.sqf";};
Where the array can contain any number of valid factions including those from add-ons.


If the group is not spawning, it maybe due to a lack of AI Centre. Place a unit of the same side into the editor to initialise.


Change Log:
Version v2.0
- Added optional faction selection
- Added random East faction selection by default
- Added wait for ACE initialisation
- Removed RADIUS parameter to simplify component (taskPatrol/taskDefend)
Version v1.0 - Initial Release


Thanks to:
    Random Group Spawn code by Odin


Visit us a http://creoBellum.org


Developer notes:
Here is a list of nifty components to be found in this mission.


Random Group Spawn code by Odin
- This piece of code has turned out to be the most important piece of my future mission making. Using GameLogic objects, this code will spawn random enemy groups of Infantry, Motorised, Mechanised, Armour and Air. In conjunction with Binesi's taskDefend and taskPatrol code, randomised mission making has never been simpler.


Syndicated:


AttachmentSize
cB_RandomGroup_2-0.utes_.zip5.58 KB
 
Original Design by Gary Storey