Search the Community
Showing results for tags 'isnil'.
Found 3 results
-
Hi there. Kind of basic stuff but my brain today is not hooking me up: I need to verify possible inexistent objects in an array: // Soldiers that Editor has been dropped and named through the Eden: _targetsOnEden = [varname_1, varname_2]; // Loop for check if some soldier doesn't exist: { if ( _x isEqualTo objNull ) exitWith { systemChat "One or more soldiers don't exist" }; } forEach _targetsOnEden; But the error prints out saying "Error undefined variable in expression: _x" for some reason. All I need is to print that systemChat out without any game errors on screen.
-
I need to execute the below code only if the global variable v_TLSAO is not empty. I'm new at this so I'm having a hard time figuring out isnil functionality. [v_TLSAO] call LARs_fnc_deleteComp;
-
Hi, I'm trying to write a script but can't solve this puzzle/problem: 1. At the start of the script I create a variable e.x. _target 2. I pick a random alive player, the script is working with _target beautifully 3. when all players died and they respawn the variable _target is undefined I try to catch that information with something similar to this: if (isNil "_target") then { _target = selectRandom playableUnits; }; Yet the variable remains undefined and I can't figure out why. If anyone wants to look at complete code I can send them a link. cheers, Daishi