Rosenrudel / arma3_cram

Sofar only a script that is trying to bring anti artillery and rocket capabilities to the Vanilla Preatorian
GNU General Public License v3.0
1 stars 0 forks source link

adding a variable to a flying projectile #3

Closed PaxJaromeMalues closed 3 years ago

PaxJaromeMalues commented 3 years ago

I sofar have no proof if

_targetsNotTracked = _targetRegistry select {!(_x getVariable ["isTracked",false])};

if(count _targetsNotTracked > 0) then {
systemChat "CRAM HAS IDENTIFIED VALID UNTRACKED TARGET";
};

and

_target = selectrandom _targetsNotTracked;
_target setVariable ["isTracked",true];
systemChat format ["Target: %1, \nTracker: %2", _target, (_target getVariable ["isTracked",false]) ];

actually do work. I assume no.

PaxJaromeMalues commented 3 years ago

This issue is solved by trying to circumvent around single targets by using a dirty target priorization local to each CRAM unit.