Hi, Cheetah, Wolfrug and anyone else interested...
Cheetah: Sorry, yes I got me zips mixed up. Iv'e tried using
domove as you suggested (_civ doMove getPos player) this seems to work
fairly well with my re-jigged code.
Wolfrug: Thanks for your imput I reailze now about the
Group command and how I was missusing it.
Although the script does work upto a point I accept your questioning of the logic of some parts (group _civ, 2 distance _me) I
thought this simply compared the distance between Civilian and Player and I am usure what you mean by (_civ
distance _me) where does the "b"
come from?
I have added the latest code below:
Code
_civ = _this select 0
_range1 = 1
_range2 = 7
#loop
_civ doMove getPos player
~2
? (_civ distance player) >=_range1 and (_civ distance player) <=_range2 : goto "talk"
goto "loop"
#talk
hint "Carlo approaches..."
_civ doMove getPos player
~5
hint "Carlo: I think i saw the man who fired the Flare his name is Draco and he is a traitor.\n (Carlo leaves...)"
~8
exit
Code/
It does seem to work, except in a few situations the main one being whenever the civilian gets anywhere near OPFOR men - then he either
stands still or lies down and forgets all about finding the Player (found this also when a Civilian driving a vehicle will refuse to drive
past OPFOR forces and gets out and lies on the ground!).
The script is part of a very long mission I am doing (more like an RPG or Adventure game) and this type of script will be needed
for Player and Enemy interactions as the Player will also become hunted himself be it by men, heli's, boats or whatever.
So really looking for a basic generic script with lots of similar uses.
Anyways any improvements suggestions etc would be greatly appreciated.
Really learning alot from u guys
Thanks again to both of you for your time and efforts.
Regards
Arkon