Jump to content
Sign in to follow this  
zonekiller

Random Enemy

Recommended Posts

Download The Mission Here

http://www.zonekiller.ath.cx/randomenemy.Sara.pbo

To run the Random enemy script you need  

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

[] exec "RE\RandomEnemy.sqs" in the init.sqs

Diff = 3

and to have different difficulity settings {which just adds more or less enemy units}

you add this to your description.ext and the triggers in this mission associated with param

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

titleparam2 = "Skill:";

valuesparam2[] = { 10, 20, 30, 40, 50, 60};

defvalueparam2 = 30;

textsparam2[] = {"Very Easy", "Easy", "Normal", "Hard", "Very Hard", "Insane"};

also add the RE folder into your mission folder.

and at least one east soldier to the map somewhere

Trigger settings:---

;_trigger = starting pos of enemy "does not need to be own trigger"

;_enemyunits = how many enemy units you want to have start "0 = random 3"

;_type = what type of enemy unit "all = random, ground = ground vehicles or troops, air = air vehicles, "T72" = T72. ECT

;_unitlist = the array of units you want this enemy group to track or the trigger \ object enemy units will patrol around

;_movement = type of movement for tha enemy "any = random track,roam,patrol,airtrack. track = enemy will track west in _unitlist, roam = enemy will roam the island, patrol = enemy will patrol 500m around trigger; airtrack = for enemy planes ,enemy will track west in _unitlist;

;_distance = if _distance > 0 it will create the enemy unit in a random position that distance away from the trigger.

;Example   [tr1,3,"tank",tr1,"track",0] exec "RE\enemy.sqs"  or [tr2,0,"all",tr1,"patrol",250] exec "RE\enemy.sqs"

you can add serveral to one trigger

;Example   [tr1,3,"tank",tr1,"track",0] exec "RE\enemy.sqs"; [tr2,0,"all",tr1,"patrol",250] exec "RE\enemy.sqs"; [tr2,0,"men",tr1,"track",500] exec "RE\enemy.sqs"

type of enemy

Random Types : ie Tank = Mission will pick the type of Tank , it will be different every time the mission starts

"ALL"  "VEHICLES"  "MEN"  "AIR"  "TANK"  "GROUND"  "SQUAD"

Non Random Types : ie T72 = Mission will Have a T72 every time the mission starts

"T72" "Mi17_MG" "MechInf" "BRDM2_ATGM" "INF" "MI17" "VIP" "ZSU"

"BMP2" "BRDM2" "SMINF" "KA50" "URAL" "URALINF" "UAZMG" "Mi17_MGINF" "Mi17INF"

also you can setup a trigger around every town so that the enemy are only created when you get near that town.

which saves on cpu power

The Mission

Is just a testing mission,

it has an old ver of Grouplink2 which needs no addons

and has an enemy airstrike added to it, I prefer this gl2 to any others

You can set the Mission to day , night  , morning , evening and very easy to insane to test your skill.

only in multi player tho

In single player it defaults to Day and Normal

When you do blow up the fuel depot a script call bomb will run which looks cool as all the barrels explode one at a time

very quickly and the damage radus is up to 200 mtrs so dont be to close or set a timer satchel which are at the back of the fuel depot

in a ammo crate

try this mission and the scripts in your own missions

but please give some feed back of your thoughts

Download The Mission Here

http://www.zonekiller.ath.cx/randomenemy.Sara.pbo

Michael

Share this post


Link to post
Share on other sites

Thanks Rocko

I will dl that script and have a look at it

well i looked at it and mine is nothing like that.

Share this post


Link to post
Share on other sites

Sorry guys i found out that you need at least one east soldier

on the map somewhere and diff = 3 added to the init.sqs for it to work in single player mode

same download tho

http://www.zonekiller.ath.cx/randomenemy.Sara.pbo

other stuff on the little island is requiered for GL2

and thats where i put the east soldier

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  

×