gtarlRobbe

ArmA 2 Scripting

Nov 1st, 2014
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.88 KB | None | 0 0
  1. _brute = _this select 0;
  2. _goat = group _brute createUnit ["Goat", Position _brute, [], 0, "NONE"];
  3. [_goat] joinsilent grpnull;
  4.  
  5.  
  6.  
  7. novictim = 1;
  8. publicvariable "novictim";
  9.  
  10.  
  11.  
  12.  
  13. while {alive _goat && novictim == 1} do
  14. {
  15.  
  16. _list = _brute nearEntities ["Man", 500];
  17. _victim = _list call BIS_fnc_selectRandom;
  18. } else if (alive _goat && side _victim == east) then
  19. {
  20. novictim = 0;
  21. publicvariable "novictim";
  22. _goat setVariable ["victim", _victim, true];
  23. hintsilent format ["%1 %2",_victim, novictim];
  24. };
  25.  
  26. _victim = _goat getVariable "victim";
  27. hintsilent format ["%1 %2",_victim, novictim];
  28. if (novictim == 0 && 10 > _goat distance _victim) then
  29. {
  30. _victim = _goat getVariable "victim";
  31. //_goat domove (position "_victim");
  32. [nil,_goat,rMOVE,(position _victim)] call RE;
  33. hint format ["%1 %2",_victim, novictim];
  34. sleep 5;
  35. _bomb = "Bo_GBU12_LGB" createVehicle [0,0,100];
  36. };
Advertisement
Add Comment
Please, Sign In to add comment