Advertisement
icdb

[ArmA3] Make units around _unit salute back

May 29th, 2020
1,544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.27 KB | None | 0 0
  1. _unit addEventHandler ["AnimChanged", {
  2.     params ["_unit", "_anim"];
  3.     _anim = _anim splitString "_";
  4.  
  5.     if ("salute" in _anim) then {
  6.         {
  7.             _x playAction "salute";
  8.         } forEach ((_unit nearObjects ["CAManBase", 10]) - [_unit]);
  9.     };
  10. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement