Jump to content
  • 0

Epoch event triggering Sarge AI


duncajcb

Question

So, still learning about scripting in general...but this is what im trying to achieve.  I would like to have a scheduled event where AI units tied to Sarge AI spawn.

 

 EpochEvents = [["any","any","any","any",15,"sarge_mission_x"];

 

Sarge_Mission_X.sqf:

 

x=floor (random 4);

     if (x  == 0) then

          {

               _this = createMarker ["SAR_marker_mission_x", [8153.08,21278.6,0]];
               _this setMarkerShape "RECTANGLE";
               _this setMarkeralpha 0;
               _this setMarkerType "Flag";
               _this setMarkerBrush "Solid";
               _this setMarkerSize [400, 400];
               _this setMarkerDir 120.050;
               SAR_marker_mission_x = _this;
 
               [sAR_marker_mission_x,1,4,10,"patrol",true­] call SAR_AI;
          };
 
Intention:  The scheduler would call Sarge_Mission_X.sqf 15 minutes into every hour.  The script would run and a 25% chance that a marker was placed and a Sarge AI mission called to that location.
 
 
Would this work?  Can I call a script which would activate a portion of another script?
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...