Jump to content
Sign in to follow this  
iwantfun

need help with spawner script

Recommended Posts

How do i change the direction the group faces when it spawns?

Airborne = [getmarkerPos "startUSMC_F35Squadron", side player, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Air" >> "USMC_F35Squadron")] call BIS_fnc_spawnGroup;

sleep 1;

wp1 = Airborne 

sleep 300;

[] execVM "spawnUSMC_F35Squadron.sqf";

Share this post


Link to post
Share on other sites

Either use:

_direction = 50; // in degrees
Airborne = [getmarkerPos "startUSMC_F35Squadron", side player, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Air" >> "USMC_F35Squadron"), [], [], [], [], [], _direction] call BIS_fnc_spawnGroup;

Or:

_direction = 50; // in degrees
Airborne = [getmarkerPos "startUSMC_F35Squadron", side player, (configFile >> "CfgGroups" >> "West" >> "USMC" >> "Air" >> "USMC_F35Squadron")] call BIS_fnc_spawnGroup;
{
    _x setDir _direction;
} forEach (units Airborne);

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  

×