Chopper Departs Counter
Posted: Thu Feb 07, 2019 8:17 am
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
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