HOW DO I MAKE THINGS INVISIBLE?
HOW DO I MAKE THINGS INVISIBLE?
DO I make items invisible in the wac file or?Thanks TAR
- Bubbachuk-PG-
- Site Admin
- Posts: 4922
- Joined: Sun May 16, 2010 1:59 pm
- Location: Marshville, North Carolina
- Contact:
Re: HOW DO I MAKE THINGS INVISIBLE?
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.
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.
The democracy will cease to exist when you take away from those who
are willing to work and give to those who would not. ~ Thomas Jefferson
Website: http://pgsquad.com
Facebook: https://www.facebook.com/oliver.holmes.357
Re: HOW DO I MAKE THINGS INVISIBLE?
Amazing Bubba even I can understand that! Thanks TAR