Skip to content

Instantly share code, notes, and snippets.

Created February 9, 2016 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/e03b125ae26d67f12c7f to your computer and use it in GitHub Desktop.
Save anonymous/e03b125ae26d67f12c7f to your computer and use it in GitHub Desktop.
//LOCATE PREY
diag_log format ["WildDogs: WildDogs Are Locating Prey!"];
_alivePrey = [];
_PlayingDead = [];
//CHECK FOR PRONE PLAYERS AND ADD TO _PLAYINGDEAD ARRAY
{if ((animationState _x = "amovppnemstpsraswrfldnon") || (animationState _x = "amovppnemstpsraswpstdnon")) then {_PlayingDead set [(count _PlayingDead),_x];};} forEach _x;
_Prey = _WildDogs targetsQuery [_PlayingDead, sideUnknown ,"CAManBase", [], 0]; // OMIT PLAYERS THAT ARE PLAYINGDEAD DURING SEARCH FOR NEW PREY
{if (alive _Prey) then {_alivePrey set [(count _alivePrey),_Prey];};} forEach _Prey; // MAKES DOGS LEAVE DEADBODIES AFTER KILLING THEM AND SEARCH FOR NEW PREY
//CHASE PREY
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment