Hi, this is annoying me...
I have this code:
_zombie = _this select 0
_man = _this select 1
_zombie setUnitPos "UP"
_zombie setBehaviour "CARELESS"
_zombie setSpeedMode "FULL"
removeAllWeapons _zombie
_zombie addMagazine "StrokeFist"
_zombie addWeapon "StrokeFist"
#loop
? (_zombie distance _man) > 5 : goto "move"
~1
goto "loop"
#move
_zombie GlobalChat "Moving..."
_zombie doMove getpos _man
goto "loop"
The _zombie moves to _man and stops when it's above him (touching him).
Now, if I change the distance check to any other number than five in ? (_zombie distance _man) > 5 : goto "move", the _zombie will move until its like 5 meters away from unit and I don't know why!
I need the _zombie to "touch" the other unit, and "distance > 5" is not useful because if i move a few steps away, _zombie stops moving...
And I have another issue:
I give _zombie "StrokeFist" weapon and make it Fire when it's near _man, but it won't stop doing the stroking animation even when I issued "doStop" or " _zombie switchMove "" ".
Any help???