OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Tyger on 06 Dec 2008, 02:04:16

Title: isNull issue (SOLVED)
Post by: Tyger on 06 Dec 2008, 02:04:16
Well I find this a bit odd, since it seems as if many others have used similar syntax:

Trigger1
Condition: isNull soldier_1
OnAct: hint "The soldier is null"

SoldierWB
Name: soldier_1
Presence: 50%

When I preview, irregardless if the soldier is present or not, nothing displays.

I'm running v1.14 - is this maybe the issue? I can't seem to find any explanation...  :dunno:
Title: Re: isNull issue
Post by: Mandoble on 06 Dec 2008, 02:47:38
mmm, might be soldier_1 isNil when the soldier is not present.
You might try: (isNull soldier_1) || (isNil "soldier_1")
Title: Re: isNull issue
Post by: Tyger on 06 Dec 2008, 05:18:16
Interesting. I guess the whole null versus nil thing is a wee confusing.

Thanks mandoble, you were indeed right!