• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Creating Units Help

Status
Not open for further replies.
Level 5
Joined
Feb 14, 2005
Messages
48
Im making a td, and I cant make the units spawn.

The trigger is like this

Event- Timer Expires
Condition- Level = 0
Action- Create 10 Footmen at Spawn 1

BUT that doesnt work, the timer expires, yet no units are created, does anyone know whats wrong?
 
Level 5
Joined
Feb 14, 2005
Messages
48
Yea, the timer is set to the right variable.

I used

Set timer = LastStartedTimer
Start timer as a repeating timer that will expire in 35 seconds
Create Timer Window for timer
Show timer window
------------------------------------
For the level thing I just made it
Set level = 0
 
Level 7
Joined
Jul 30, 2004
Messages
451
umm, as long as it really is the variable you set as the timer expiring, and level is = to 0, then there as absolutely no reason the trigger won't run when that timer expires

but here are a series of debug steps you can go through
1) switch the event to time elapsed or typed message or something
-- if it works, that means your timer is not set or not expiring
2) remove the condition
-- if it works, that means your condition is false
3) add a text message in the trigger actions
-- if you see the message that means somethigns wrong with making the units[/img]
 
Level 4
Joined
Apr 8, 2005
Messages
70
Set timer = LastStartedTimer
Start timer as a repeating timer that will expire in 35 seconds
Create Timer Window for timer
Show timer window

Your setting 'timer' to the LastStartedTimer Then your starting the timer...

Wouldn't it make much more sence to start the timer then set timer to LastStartedTimer? :D

Code:
Start timer as a repeating timer that will expire in 35 seconds
Set timer = LastStartedTimer
Create Timer Window for timer
Show timer window
 
Status
Not open for further replies.
Top