I use on map triggers to make the following:
An object is placed on the map, called mainobj1
Locations of spawn key off that object, ex:
QRFDIST1 = 1000;
QRFDIR1 = 0;
QRFDIRTEXT1 = "North";
EQDEPDIR1 = QRFDIR1-30;
EQDEPDIR2 = QRFDIR1+30;
When the scenario begins, this following is executed:
The markers are just flag markers, which are deleted within 300 seconds
"marker_0" setMarkerPos (MAINOBJ1 getPos [QRFDIST1,EQDEPDIR1]);
"marker_1" setMarkerPos (MAINOBJ1 getPos [QRFDIST1,EQDEPDIR2]);
TREIN1 setPos (MAINOBJ1 getPos [QRFDIST1,EQDEPDIR1]);
TREIN2 setPos (MAINOBJ1 getPos [QRFDIST1,EQDEPDIR2]);
Once the player appears in the area of mainobj1, within a time from of from 300 seconds to 900 seconds, an infantry units is s'posed to spawn:
ES1W1 is the spawned group object id
TREIN1 is the object where the new unit appears
ESONEA is a variable of which is defined on a separate file ( I called deployments-mobile.sqf) the type of group to be spawned;
ES1W1 = [getPos TREIN1, OPFOR, [ESONEA],[],[],[],[],[],180] call BIS_fnc_spawnGroup;
This is the error message:
16:52:53 Error in expression <= getNumber(configFile >> "CfgVehicles" >> _type >> "isMan") == 1;
if !(_isMan>
16:52:53 Error position: <>> _type >> "isMan") == 1;
if !(_isMan>
16:52:53 Error >>: Type Config entry, expected String
16:52:53 File /temp/bin/A3/Functions_F/Spawning/fn_spawnGroup.sqf..., line 127
It doesn't matter if it is vanilla Arma 3 units or CUP or RHS units, which I use constantly. Doesn't matter the terrain, or any other mods I use.
Vehicles spawn just fine, no problem, but not actual groups.