Jump to content
Sign in to follow this  
Starlight

Problems with a reinforcemnt script

Recommended Posts

I have a Marker set up call Kom

Within this market I have 3 groups deployed via the editor and given the following init line

nul=[this,"Kom"] execVM "ups.sqf"

These correctly patrol using the UPS script :yay:

I have a second marker called RKom placed some distance behind the village

I have a trigger that Switches on the Not Present of OPFOR with an On Act of

[] exec "Reinf0.sqf"

In the mission folder I have a Reinf0.sqf file as shown below

GroupAlpha1 = CreateGroup East;

_unit = GroupAlpha1 createUnit ["RU_Soldier_SL", [(getMarkerPos "RKom") select 0,(getMarkerPos "RKom") select 1,0], [], 3, "FORM"];

leader=1;

rank="LIEUTENANT";

skill=0.59999996;

nul=[this,"Kom"] execVM "ups.sqf";

_unit = GroupAlpha1 createUnit ["RU_Soldier_MG", [(getMarkerPos "RKom") select 0,(getMarkerPos "RKom") select 1,0], [], 3, "FORM"];

rank="SERGEANT";

skill=0.46666664;

_unit = GroupAlpha1 createUnit ["RU_Soldier_AT", [(getMarkerPos "RKom") select 0,(getMarkerPos "RKom") select 1,0], [], 3, "FORM"];

rank="rank="SERGEANT";

skill=0.46666664;

_unit = GroupAlpha1 createUnit ["RU_Soldier_LAT", [(getMarkerPos "RKom") select 0,(getMarkerPos "RKom") select 1,0], [], 3, "FORM"];

rank="CORPORAL";

skill=0.33333331;

_unit = GroupAlpha1 createUnit ["RU_Soldier_Marksman", [(getMarkerPos "RKom") select 0,(getMarkerPos "RKom") select 1,0], [], 3, "FORM"];

rank="CORPORAL";

skill=0.33333331;

_unit = GroupAlpha1 createUnit ["RU_Soldier_MG", [(getMarkerPos "RKom") select 0,(getMarkerPos "RKom") select 1,0], [], 3, "FORM"];

rank="CORPORAL";

skill=0.33333331;

_unit = GroupAlpha1 createUnit ["RU_Soldier_LAT", [(getMarkerPos "RKom") select 0,(getMarkerPos "RKom") select 1,0], [], 3, "FORM"];

rank="CORPORAL";

skill=0.33333331;

_unit = GroupAlpha1 createUnit ["RU_Soldier_AR", [(getMarkerPos "RKom") select 0,(getMarkerPos "RKom") select 1,0], [], 3, "FORM"];

rank="CORPORAL";

skill=0.33333331;

_unit = GroupAlpha1 createUnit ["RU_Soldier_AR", [(getMarkerPos "RKom") select 0,(getMarkerPos "RKom") select 1,0], [], 3, "FORM"];

rank="CORPORAL";

skill=0.33333331;

_unit = GroupAlpha1 createUnit ["RU_Soldier_GL", [(getMarkerPos "RKom") select 0,(getMarkerPos "RKom") select 1,0], [], 3, "FORM"];

rank="CORPORAL";

skill=0.33333331;

_unit = GroupAlpha1 createUnit ["RU_Soldier_GL", [(getMarkerPos "RKom") select 0,(getMarkerPos "RKom") select 1,0], [], 3, "FORM"];

rank="CORPORAL";

skill=0.33333331;

_unit = GroupAlpha1 createUnit ["RU_Soldier_AR", [(getMarkerPos "RKom") select 0,(getMarkerPos "RKom") select 1,0], [], 3, "FORM"];

rank="CORPORAL";

skill=0.33333331;

I have an OPFOR Player character start inside the trigger, stopping it from activating.

When I move outside the trigger, the Squad shown above spawns BUT it faisl to respond to the init call to the UPS. Also I just try using waypoints they also fail to respond. :mad:

Please can someone show me how to put the UPD init into the Reinf0.sqf above :o

Also I would appreciate help on cleaning up the Reinf0.sqf file above, I expect its not a very clean way to create the troops :D

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  

×