Delta Force Barracks Forums

Wac File

cto imp - 10-16-2005 at 12:43 PM

I'm fairly new to map making. Where can I find a download or link for a wac file? I'm mostly interested in the rain and snow. Please help....

Eagle_Eye - 10-16-2005 at 04:35 PM

You can create a wac from within the DFX med..it's on a pull down menu..

For an explanation, see the BHD download section, there's a tut there by chrislew200..

Also looks through the other map making sections..there are stickies explaining weather effects and other things..

EE

cto imp - 10-18-2005 at 12:36 AM

Eagle Eye,
Thanks much!!! I appreciate it!!! One last request...Maybe sometime we could link up and get on TS or something and explain how to use this. I tried it about 50 million times and couldn't get it to work. I even typed it verbatim and change the area trigger #'s and still wouldn't work. Named the wac and mission file the same... Set area triggers to the same # in med and wac????????????? Don't know...Please help!!!!

chrislew200 - 10-18-2005 at 04:31 AM

Ok so where on the next step then please paste the content of your wac file in a reply post use copy and paste.

That way then i can rule out any wac errors.

chrislew200

cto imp - 10-18-2005 at 11:02 AM

if ssnarea(1) and then
flash

Don't laugh to hard....My 1st try...

mr tarzan - 10-18-2005 at 01:43 PM

hmmmm. i'm still a noob at this, but you could try:

if area(1) and never() then
flash
endif

Using this command will make it flash the first time a player reaches area trigger 1. If you want it to flash everytime a player reaches that area, you'll have to remove the "and never()". Like this:

if area(1) then
flash
endif

Correct me if I'm wrong guys

mr tarzan :):D

Eagle_Eye - 10-18-2005 at 02:09 PM

Looks good to me..

cto imp, don't forget the "endif" at the end to complete the action..

cto imp - 10-18-2005 at 11:58 PM

how many spaces should you have between the triggers? Do I still use end if when i chain them? Thanks to both of ya.

mr tarzan - 10-19-2005 at 09:10 AM

Quote:
Originally posted by cto imp
how many spaces should you have between the triggers? Do I still use end if when i chain them? Thanks to both of ya.


I'm not quite sure if I know what you mean about the triggers and spaces. But If I do, you only use 1 hit on the spacebar between the words.
Regarding the endif: Write endif as one word. You will have to use the endif after the last event. I'm not really sure if you need to use endif after all events when they are chained. E_E?

Try to copy and paste the following commands into a wac file:

//Environment - Weather

if never() then
overcast(100)
tod(2300)
endif

if past(10) and never() then
farflash
endif

if chain(10) and never() then
flash
endif

if chain(10) and never() then
quake(10)
endif

A farflash will come 10 secs into the game. Then the flash will come 10 secs after that. 10 secs after that, there will be a little quake.

If you paste this into a wac file and play the game, you'll see how the past() and the chain() command works.

mr tarzan :D

cto imp - 10-22-2005 at 07:50 AM

Thank you peeps!!!! To all who helped!!!