Page 1 of 1

Chopper Departs Counter

Posted: Thu Feb 07, 2019 8:17 am
by Red Dog-PG-
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 ;)

Re: Chopper Departs Counter

Posted: Thu Feb 07, 2019 3:29 pm
by Country Joe-PG-
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...…...

Re: Chopper Departs Counter

Posted: Fri Feb 08, 2019 8:00 am
by Windstalker-PG-
Both of those are cool. Thanks guys!