Jump to content
Sign in to follow this  
hogmason

spawn enemy by a script

Recommended Posts

hi guys im wondering if any one can help me.

i am 100% a noob when it comes to scripting

I am trying to make a script that will spawn enemy by a trigger or something when a marker type is spawned in game i.e

i have multiple sidemissions that randomly get started when they start a mrkTaskMM1 marker is created over the mission area. please note that (mrkTaskMM1) is not the marker name its the marker class name. i cant actually name the marker as the marker is spawned by

          case 0: { ["Task1","Task1Title","Task1Desc"[color="#0000CD"],true,["mrkTaskMM1",getmarkerpos "task1","","","text1"[/color]]] call SHK_Taskmaster_add };

i was thinking maybe a trigger set to cover the sidemission area with activation Anybody and in the init

something like

_handle = [getMarkerPos "mrkTaskMM1"] execVM "??.sqf";

maybe spawn.sqf which will contain a script to spawn the units and maybe inside that script a exec value to start another script maybe patrol.sqf which will have the units behavour and waypoints to patrol or somthing.

i hope i make sense.

Share this post


Link to post
Share on other sites

cheers mate ill check now ;)

---------- Post added at 10:00 ---------- Previous post was at 09:54 ----------

your da man that was spot on mate ive replied to the pm with 1 last question.

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  

×