PDA

View Full Version : ---HELP--- how to script spawning warthog when countdown timer = zero



didymus
May 20th, 2011, 02:03 PM
Okay so my script is posted below. I am really confused why this isn't working.

(script continuous COUNTDOWN_ZERO
(begin
(if (and (numeric_countdown_timer_get 10) true)
(object_create mp_warthog ))
)
)








Okay so the *COUNTDOWN_ZERO* SCRIPT should execute as such


1. when countdown timer reaches 10 seconds
2. spawn warthog


**LATER on when my script is more developed I will make it to where certain team members (such as red team or blue team) can activate or deactivate the timers.


Problem: The warthog is automatically spawned at the beginning of the game.

--I MADE SURE that-- In Sapien that the banshee doesn't spawn under any game time.

The game is thinking that the warthog is spawned at beginning however it is supposed to be spawned when 10 seconds are left from countdown timer.




So what am I doing wrong?

Kornman00
May 20th, 2011, 05:32 PM
So what am I doing wrong?
For starters, your usage of the (begin) statement is completely redundant.

Donut
May 20th, 2011, 05:35 PM
in the base game, there is no function to check what team a player is on. open sauce may have added a function, but i dont know. you'd have to ask kornman.