Vasilyevich 20 Posted April 1, 2014 Hi, i would like to make a trigger that activates when a bluefor is near the "drone" and has to stay there for time X, with a status bar or something, if that's possible. Share this post Link to post Share on other sites
fusion13 11 Posted April 1, 2014 Very possible. For the script make a function that checks the distance cover and over and off its farther then x then stop it u feel me Share this post Link to post Share on other sites
Tajin 349 Posted April 1, 2014 AddAction could also be used for that. drone setVariable["data",0,false]; drone addAction ["", "", "", 0, false, false, "", ' if (!alive _target) exitWith {}; _datatarget = 60; _last = _target getVariable "last"; _data = _target getVariable "data"; if ((_this distance _target) < 5) then { _data = _data + (time - _last); _target setVariable["last",time,false]; _target setVariable["data",_datatarget min _data,false]; if (_data >= _datatarget) then { drone setVariable["complete",true,true]; } } else { _data = _data - 2 * (time - _last); _target setVariable["last",time,false]; _target setVariable["data",0 max _data,false]; }; _percentage = ceil(_data / _datatarget * 100); _color set [3, 1 - _dist]; drawIcon3D [ "", [1,1,1,1], [ visiblePosition _target select 0, visiblePosition _target select 1, (visiblePosition _target select 2) + 2 ], 0, 0, 0, _percentage, 2, 0.03, "PuristaMedium" ]; false ']; That script (if I didn't make any mistakes) should work so that each soldier has his own download timer (everyone is downloading the data to his flashdrive) and when one has downloaded it all, a public variable is set to true. If you leave the area (5m radius), your data starts decaying (twice as fast as the download) until you get back. In my example you need to stay near the drone for 1 minute. Share this post Link to post Share on other sites