Closed trapw0w closed 5 years ago
_player like this is a private variable, it can't work unless you define it. Now the script passes _scanner and _player as parameters to the condition but you have to "catch" them in you script, so that would be either:
params ["_scanner,"_player"]; _player getUnitTrait "testunit"
or
(_this select 1) getUnitTrait "testunit"
(verified and tested, works as intended) Close ?
Arma 3 Version:
1.94
(stable / rc / dev) CBA Version:3.12.2
(stable / dev + commit hash) ACE3 Version:3.12.6
(stable / rc / dev) Milsim Tools Version:1.17.5
(stable / rc / dev)Mods:
Description:
true
, and using getUnitTrait to return false, door opens.Steps to reproduce:
this setUnitTrait["testunit",true,true];
now in the bio metrics panel, run_player getUnitTrait "testunit";
on menu/eyescanner/handscanner while ensuring condition is true. Confirm this returns false by adding:Where did the issue occur?
RPT log file:
These lines are as a result of an IF statement in the init of the biometric scanner to detect if the unit has the trait: