Page 1 of 1

trigger question

Posted: Tue Jun 05, 2007 6:47 am
by ViPER
I have a trigger multiple - when i waittill trigger i get an error

waittill applied to NULL listener
^

when i trigger it - works fine. When the trigger is vacant the error returns. why is it NULL if its working otherwise???


my waittill / while loop is threaded from main - my trigger simply has a targetname.

Posted: Tue Jun 05, 2007 8:33 am
by bdbodger

Code: Select all

$mytrigger waittill trigger
That will only return an error if there isn't an entity with that targetname

Posted: Tue Jun 05, 2007 9:19 am
by ViPER
maybe a false error as indicated from some other unknown error?

Posted: Tue Jun 05, 2007 10:56 am
by ViPER
Got it -

I scripted the targetname with a cap letter. odd it worked as a trigger but didnt like the wait. lol

Posted: Tue Jun 05, 2007 1:46 pm
by bdbodger
You want something to tear your hair out about try using local.1 instead of local.i some time or using a cap in a while statement While(1) LOL you have to have good eyes to notice those errors .

setthread

Posted: Tue Jun 05, 2007 6:33 pm
by tltrude
You must remember that you don't use the "waittill" line if your trigger has "setthread".