User Tools

Site Tools


arma2:scripting:bis_fnc_spawngroup

This is an old revision of the document!


BIS_fnc_spawnGroup

How to create whole groups from CfgGroups class.

First you need to have Functions module active in your mission, easiest way is to place this gamelogic in mission editor. Use F7 to select modules, then click on the map and choose “Functions” from the menu. You also need to/should add into your mission check that is the functions manager already running and initialized.

Check if functions manager has initialized:

waituntil
{
	(!isNil "BIS_fnc_init");
};

Then you can start to create groups listed in CfgGroups class.

Create BLUFOR CDF infnatry squad:

_grp = [_pos, WEST, (configFile >> "CfgGroups" >> "West" >> "CDF" >> "Infantry" >> "CDF_InfSquad")] call BIS_fnc_spawnGroup;

Create OPFOR Russian infantry squad:

_grp = [_pos, EAST, (configFile >> "CfgGroups" >> "East" >> "RU" >> "Infantry" >> "RU_InfSquad")] call BIS_fnc_spawnGroup;

PMCTODO - add all CfgGroups classes or function to list/choose them (randomly too).

arma2/scripting/bis_fnc_spawngroup.1313379902.txt.gz · Last modified: 2011-08-15 03:45 by snakeman