trigger question

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

trigger question

Post 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.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

Code: Select all

$mytrigger waittill trigger
That will only return an error if there isn't an entity with that targetname
Image
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

maybe a false error as indicated from some other unknown error?
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

Got it -

I scripted the targetname with a cap letter. odd it worked as a trigger but didnt like the wait. lol
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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 .
Image
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

setthread

Post by tltrude »

You must remember that you don't use the "waittill" line if your trigger has "setthread".
Tom Trude,

Image
Post Reply