Jump to content
Sign in to follow this  
exikutioner

Spawn Group via Terminal

Recommended Posts

After extensive searching via google, I am finally resorting to the community. Is there a way to spawn in a group of enemy and have them move to a set waypoint via a terminal (laptop, sign post, etc)?

Share this post


Link to post
Share on other sites

Heres a snip that worked for me for creating group at Marker named "Bor"

WestGrp01 = CreateGroup West;
_leader = WestGrp01 createUnit ["GUE_Soldier_AR", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];

_unit = WestGrp01 createUnit ["GUE_Soldier_GL", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
_unit = WestGrp01 createUnit ["GUE_Soldier_MG", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
_unit = WestGrp01 createUnit ["GUE_Soldier_Medic", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
_unit = WestGrp01 createUnit ["GUE_Soldier_GL", [(getMarkerPos "bor") select 0,(getMarkerPos "bor") select 1,0], [], 3, "FORM"];
_leader = leader WestGrp01;
_newGrp = (group _leader);

As for adding waypoint maybe something like:

_wp = _newGrp addWaypoint [position player, 0]

Or for High Command over them:

player hcSetGroup [_newgrp];

Share this post


Link to post
Share on other sites

Tried that, and did not work. This is what I put in as the EnTank.sqf:

EastGrp01 = CreateGroup East;
_leader = EastGrp01 createUnit ["T72_TK_EP1", [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0], [], 3, "FORM"];

_unit = EastGrp01 createUnit ["T55_TK__EP1", [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0], [], 3, "FORM"];
_unit = EastGrp01 createUnit ["M113_TK_EP1", [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0], [], 3, "FORM"];
_unit = EastGrp01 createUnit ["T72_TK_Ep1", [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0], [], 3, "FORM"];
_leader = leader EastGrp01;
_newGrp = (group _leader);

Trying to use InfoStand2 with this:

this addAction ["Live Enemy","EnTank.sqf"]; this enableSimulation false; this SetObjectTexture [0,"Live_Enemy.paa"];

What am I doing wrong?

Share this post


Link to post
Share on other sites

Something like this:

EnTank.sqf

WestGrp01 = CreateGroup West;
_leader1 = WestGrp01 createUnit ["GUE_Soldier_AR", [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0], [], 3, "FORM"];

_unit1 = WestGrp01 createUnit ["GUE_Soldier_GL", [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0], [], 3, "FORM"];
_unit2 = WestGrp01 createUnit ["GUE_Soldier_MG", [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0], [], 3, "FORM"];
_leader1 = leader WestGrp01;
_newGrp1 = (group _leader);

_tank1 = "T72_TK_Ep1" createVehicle [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0];
_leader1 moveInCommander _tank1;
_unit1 moveInDriver _tank1;
_unit2 moveInGunner _tank1;

_wp = _newGrp1 addWaypoint [getPos player, 0];

Share this post


Link to post
Share on other sites

Ok, thanks for the help so far. Got this done, but still have an issue getting them to move to the waypoint:

//Create Men
EastGrp01 = CreateGroup East;
_leader1 = EastGrp01 createUnit ["GUE_Soldier_AR", [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0], [], 3, "FORM"];

_unit1 = EastGrp01 createUnit ["GUE_Soldier_AR", [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0], [], 3, "FORM"];
_unit2 = EastGrp01 createUnit ["GUE_Soldier_AR", [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0], [], 3, "FORM"];
_unit3 = EastGrp01 createUnit ["GUE_Soldier_AR", [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0], [], 3, "FORM"];
_unit4 = EastGrp01 createUnit ["GUE_Soldier_AR", [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0], [], 3, "FORM"];
_leader1 = leader EastGrp01;
_newGrp1 = (group _leader);

//Create Tanks
_tank1 = "T72_TK_Ep1" createVehicle [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0];
_leader1 assignAsDriver _tank1;
_leader1 moveInDriver _tank1;

_tank2 = "T72_TK_Ep1" createVehicle [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0];
_unit2 assignAsDriver _tank2;
_unit2 moveInDriver _tank2;

_tank3 = "M113_TK_EP1" createvehicle [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0];
_unit3 assignAsDriver _tank3;
_unit3 moveInDriver _tank3;

_tank4 = "T55_TK_EP1" createvehicle [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0];
_unit4 assignAsDriver _tank4;
_unit4 moveInDriver _tank4;

_tank5 = "T75_TK_Ep1" createVehicle [(getMarkerPos "tank1") select 0,(getMarkerPos "tank1") select 1,0];
_unit1 assignAsDriver _tank5;
_unit1 moveInDriver _tank5;

//WayPoint
_wp0 = _newGrp01 addwaypoint [getmarkerpos"WP1",0];
_wp0 setwaypointtype"Move";

_wp1 = _newGrp01 addwaypoint [getmarkerpos"WP2",0];
_wp1 setwaypointtype"Move"; 

Edited by Exikutioner
Update Script

Share this post


Link to post
Share on other sites

I'd recommend looking at BIS_fnc_spawnVehicle and BIS_fnc_spawnGroup also. I think they are easier to understand.

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  

×