Ich kann dir ja ne "Puppe" modeln, wenn du eine brauchst
Ich habe ein Problem, wenn ich ein Objekt mit isNull oder !isNull abfrage.
isNull klappt irgendwie nicht,
!isNull klappt
z.B. Script wird aufgrufen:
Code:
_no = nearestObjects [_rpt,["Car","Bicycle","Motorcycle","Helicopter"],20];
_rpf1 = _no select 0;
if (isNull _rpf1) exitWith {hint "no vehicle in range"};
Wenn ich z.b. _rpf1 im player sideChat anzeigen lasse, steht da NULL
Stelle ich es um:
Code:
_no = nearestObjects [_rpt,["Car","Bicycle","Motorcycle","Helicopter"],20];
_rpf1 = _no select 0;
if (!isNull _rpf1) exitWith {hint "there is a vehicle"};
Im Beispiel 2 funktioniert die Ausgabe.