1. we tried it but it ctd wen u use objects dat r not dere
2. wat do u exactly meen here ?
u want script dat make a unit move 2 dese places ?
like dat ?
_man = _this select 0
_array = _this sekect 1
_i = 0
#loop
_num = _array select _i
_man move (object _num)
~5
@ _man distance (object _num) < 5
_i=_i+1
? _i < count _array : goto "loop"
exit
exec - [manname,[arrayofIDs]] exec "scriptname.sqs"
3.
- random ID num
make array of all da IDs u want da comp 2 choose from nd do
arrayname select (random (count arrayname))
-"Sentry" - so that he/they will choose a new when it gets to hot.
u meen dat he wil run away wen enemy is close or somin like dat ?
make arry of all enemies
nd da next line 2 check if its becomin hot
"if (_X distance ManName < 100) then {_close=_close+[_X]}" foreach arrayOfEnemies
now da array named close wil tel u how meny enemies r close 2 him (u can also play w/ da distance
)
- "Fire/Engage at will"
unitname setcombatmode "red" 4 engage @ wil (check da online comm ref in da ED)
-"check ammo status"
make array of ammocrates
nd da next code 2 know hos da nearest
_i = 0
_Dis = _10000000
#loop
_create = arrayName select _I
? _man distance _create <_dis : _cr = _create; _dis = _man distance _create
_i=_i+1
? _i < count _arrayname : goto "loop"
now _cr is da nearest create
:cheers:
LCD OUT