Page 1 of 1

Couple questions...

Posted: Thu Mar 04, 2004 7:10 am
by Splaetos
First off... if I have two triggers that do the same thing, can I give them the same targetname and would that work with the script as an either/or thing? Like if you press either one it does whatever the trigger is supposed to do.... or do I have to script each as a seperately named trigger to accomplish the task, while making sure that they dont overlap each other if one gets triggered while the other is already working?(the latter is what i had been trying to script)

Also, would entering the key/value sunfalre/none get rid of this annoying sunflare I have? I have low levels of light outside on the map, but have no sunfalre entered nor no sundirection entered, doesnt get rid of the completely bizarre(in a night map) sunflare. The other options is to move the sun direction to below the horizon I guess, but I havent been working o nthat map, and Id rather ask and see if anyone knows them run some 4 hour compiles just to lose a flare =)

number 3... can you use notsolid on script objects dfined in the map, or does it only work on models?

Posted: Thu Mar 04, 2004 2:44 pm
by bdbodger
For trigger with the same targetname it depends on how you set them up . I mean if you have in your scipt $mytrigger waittill trigger that won't work with two with same target name but $mytrigger[1] waittill trigger will work but that is confuseing because I think the last one created it $mytrigger[1] and the first one created is $mytrigger[2] etc every time you make one the numbers get bumped up . If you used a key:setthread with a thread as its value then it will work ok if in your thread you do something like this

main:
level.thread1running = 0
....
end

mythread:
if(level.thread1running == 0)
{
level.thread1running = 1
do stuff
level.thread1running = 0
}

end

that way if the second trigger runs the thread then it won't do anything if the thread is still running until after the do stuff is done .

I don't know why you have a sunflare if you didn't set one

set spawnflags 1 on a script object to make it notsolid

Posted: Thu Mar 04, 2004 2:45 pm
by M&M
1st:i suppose that would work,but i know very few about scripting so ud better wait 4 some1 with more experience than me :wink:

2nd:here is a very good tut that explains the sun directions

3rd:dont have a clue :P

edit:he posted a minute earlier :(