Couple questions...

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

Moderator: Moderators

Post Reply
Splaetos
Major General
Posts: 730
Joined: Tue Jan 20, 2004 2:55 pm
Contact:

Couple questions...

Post 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?
When I am king, you will be first against the wall~
Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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
M&M
General
Posts: 1427
Joined: Sun Sep 14, 2003 1:03 am
Location: egypt
Contact:

Post 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 :(
Image
Post Reply