Jump to content
Sign in to follow this  
1para{god-father}

Spawn in and add to Group

Recommended Posts

I spawn in a scud , but I wanted to also spawn in another vehicle and join it to the group how would i do that , so when i set the WP up they will both go.

// Spawn the scud launcher.
_ch = [_spot2, 0, "MAZ_543_SCUD_TK_EP1", EAST] call BIS_fnc_spawnVehicle;

Share this post


Link to post
Share on other sites
// Spawn the scud launcher.
_ch = [_spot2, 0, "MAZ_543_SCUD_TK_EP1", EAST] call BIS_fnc_spawnVehicle;

// _ch returns an array with [object,[array of crew],group]
_grp = _ch select 2;

// spawn more units in this group
_newvehicle = [position, direction, type, _grp] call BIS_fnc_spawnVehicle;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×