OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: DLEGION on 24 Jun 2012, 23:05:26
-
Hello! ARMA 2 OA question:
i really need a way to make an AI unit chase another unit (the player in this case), walking (not running), with no fear (no crouch, no fleeing away) !
its not a zombie....it's just a terminator!
really thanks for your help!
-
You could try something like this:
// steal the terminators brain and limit his speed
terminator disableAI "FSM";
terminator forceSpeed 1;
private ["_handle"];
_handle = player spawn { // create a background script...
waitUntil { // ... that runs as long as the terminator is alive...
terminator doMove getPos _this; // ... and makes the him chase the player.
sleep 1;
not alive terminator;
};
};