Page 1 of 1

HOW DO I MAKE THINGS INVISIBLE?

Posted: Tue Jun 14, 2011 1:26 pm
by TAR1
DO I make items invisible in the wac file or?Thanks TAR :D

Re: HOW DO I MAKE THINGS INVISIBLE?

Posted: Tue Jun 14, 2011 3:46 pm
by Bubbachuk-PG-
You use a WAC Script. Here's some examples:

Lets say you have 5 motorcycles with SSNs from 1 to 5 and you wanted to hide them at the beginning of the map. Here's what you would do. They can be anywhere on the map.

if never() then
hidessn(1)
hidessn(2)
hidessn(3)
hidessn(4)
hidessn(5)
endif

Let's say the first Event is to Destroy Weapon Crates at Alpha Base. You have two motorcycles, SSN(1) and SSN(2) positioned at Alpha Base to be used to get to the next event but they are hidden. Event 1 will set up the objective and Event 2 will show the crates have been destroyed. Once the crates are destroyed, you want to reveal the motorcycles.

if event(1) and never() then
consol("Destroy All of the weapon crates at Alpha Base.")
text("DESTROY ALL OF THE WEAPON CRATES")
endif

The next event would show the weapon crates have been destroyed and reveal the 2 motorcycles:

if event(2) and never() then
consol("Weapon Crates destroyed. Use the captured enemy motorcycles to get")
consol("to the next mission area")
text("CRATES DESTROYED")
unhidessn(1)
unhidessn(2)
endif

You can hide a lot of objects in the first WAC Script (if never() then) then just unhide them as you need them.

Re: HOW DO I MAKE THINGS INVISIBLE?

Posted: Wed Jun 15, 2011 2:35 pm
by TAR1
Amazing Bubba even I can understand that! Thanks TAR