Here is a WAC script for a timer that counts down before the Helicopter takes off.
if never() then v10 = 21 endif
if ssnonssn(player,30) and never then set(v1,1) endif
if v10 and eq(v1,1) then dec(v10)
consol#(" Helicopter Departs In:<co100>",v10) endif
if !v10 then killssn(31) endif
Break Down:
if never() then v10 = 21 endif..........I have the variable (v10) equaling 21 so when the counter shows in the game it starts at 20 seconds
if ssnonssn(player,30) and never then set(v1,1) endif..........when a player steps onto the Helicopter (30) the counter starts
consol#(" Helicopter Departs In:<co100>",v10) endif..........There must be 2 spaces between the inverted comma's and the word Helicopter or 3 counter messages will display on your monitor counting down instead of just 1 counter message where only the number changes
Helicopter Departs In: 15
Helicopter Departs In: 14
Helicopter Departs In: 13
or
Helicopter Departs In: 15
consol#(" Helicopter Departs In:<co100>",v10) endif..........The counter-message is the color white and the number is yellow ( <co100> )
if !v10 then killssn(31) endif..........ssnnumber 31 is a metal barrel set to indestructible. Once the counter counts down to zero, the barrel destructs which then triggers an event to send the Helicopter on its waypoint.
I know you guys more than likely have accomplished this already but I think it is cool and thought I would share, Enjoy and keep on WAC'in
Chopper Departs Counter
- Red Dog-PG-
- Squad Member
- Posts: 1005
- Joined: Thu Jan 10, 2013 1:21 pm
Chopper Departs Counter
Handle every stressful situation like a Dog....if you can't eat, hump it, or play with it, pee on it and walk away
- Country Joe-PG-
- Squad Member
- Posts: 2119
- Joined: Sun May 30, 2010 12:29 pm
- Location: USA
Re: Chopper Departs Counter
Thanks RD.
Could you also put an area trigger around the Helo then when a player enters the area trigger use the Events to say "if blue team in area then execute WAC"?
The WAC could say something like:
if event (25) and never () then
consol("The Helo will take off in 25 seconds")
endif
if chain (10) and never () then
consol("Helo will take off in 15 seconds")
endif
if chain (5) and never () then
consol("Helo will take off in 10 seconds")
endif
if chain (1) and never () then
consol("9 seconds")
endif
if chain(1) and never () then
consol("8 seconds")
endif
etc...…...
Could you also put an area trigger around the Helo then when a player enters the area trigger use the Events to say "if blue team in area then execute WAC"?
The WAC could say something like:
if event (25) and never () then
consol("The Helo will take off in 25 seconds")
endif
if chain (10) and never () then
consol("Helo will take off in 15 seconds")
endif
if chain (5) and never () then
consol("Helo will take off in 10 seconds")
endif
if chain (1) and never () then
consol("9 seconds")
endif
if chain(1) and never () then
consol("8 seconds")
endif
etc...…...
- Windstalker-PG-
- Administrator
- Posts: 1451
- Joined: Sat May 22, 2010 11:04 am
Re: Chopper Departs Counter
Both of those are cool. Thanks guys!
When you hear the Wind.. You're already dead