Hiya all,
I need some help for my new sp mission, D vs. the Undead. Problem is this -- I am having a hell of a time trying to figure out how to get the vampires to target the whole group instead of the leader.
Here's script, called by [vampire, hunter] exec "vampire.sqs"
_vampire =_this select 0;
_hunter =_this select 1;
#main
? NOT(alive _vampire) : goto "dead"
? NOT(alive _hunter) : goto "end"
_vampire domove (getpos _hunter)
? _vampire distance _hunter <= 5 : goto "attack"
? _vampire distance _hunter > 1 && _vampire distance _hunter <= 5 : goto "engage"
? _vampire distance _hunter > 5 : _vampire doMove getPos _hunter
~5
goto "main"
#engage
_nX = getPos _hunter select 0
_nY = getPos _hunter select 1
_vampire setPos [_nX, _nY]
goto "main"
#attack
? NOT(alive _vampire) : goto "dead"
_vampire switchmove "standstrokefist"
playsound "punch"
_x = random 2
? _x <= 1 : _hunter setDammage (getDammage _hunter + 0.1)
~1
goto "main"
#dead
playsound "growl"
exit
#end
exit
If someone would help, I would greatly appreciate it.
peace,
Kueter