• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Making a building build in like 0.01 secs?

Status
Not open for further replies.
Level 5
Joined
Jun 18, 2008
Messages
146
Hey, siDeKicK here,

As you know, i am making a TD and i want to make the towers take like 0.01 SECS to build/upgrade, does ANY one know how to change and make it 0.01 secs?

I made the build time 1 sec, but it is still to slow =\!

Thanx,

siDeKicK
 
Level 14
Joined
Nov 4, 2006
Messages
1,241
  • Events
    • Unit - a Unit starts the constuction of a Unit
  • Conditions
  • Actions
    • Unit - order constructing Unit to stop
    • Unit - replace constructed Unit with a Unit of type constructed unit
don't know if the stop action is necessary, was just a thought
 
Level 5
Joined
Jun 18, 2008
Messages
146
Yay, thanx dude, it works, but when i start to construct the unit, it builds like one block away from where i want it to build... why :(!!

Heres my trigger:

  • QUik Build
    • Events
      • Unit - A unit Begins construction
    • Conditions
    • Actions
      • Unit - Replace (Constructing structure) with a (Unit-type of (Constructing structure)) using The old unit's life and mana
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
The quickest way possiable would be to trigger it on the begins construction event and then use a timer to delay action for one cycle (the smallest unit of time possiable in WC3). Then you instantly set its construction process to max and it would be built.

However 1 second should be fast enough in any situation.
 
Level 5
Joined
Jun 18, 2008
Messages
146
or you just set the Build time in the Object editor to 0? Shift-Click is your friend

SIgh.. The minimum build time is [1]!! You cant put it 0 secs!
The quickest way possiable would be to trigger it on the begins construction event and then use a timer to delay action for one cycle (the smallest unit of time possiable in WC3). Then you instantly set its construction process to max and it would be built.

However 1 second should be fast enough in any situation.

Can you show me a trigger of what you are talking about :D?!

Thanx,

siDeKicK
 
Level 5
Joined
Jun 18, 2008
Messages
146
lol thanx guys... but i FINALLY worked it out in trigger editor...

Trigger:

  • QUik Build
    • Events
      • Unit - A unit Begins construction
    • Conditions
    • Actions
      • Unit - Order (Triggering unit) to Stop
      • Wait 0.01 seconds
      • Unit - Replace (Constructing structure) with a (Unit-type of (Constructing structure)) using The old unit's life and mana
siDeKicK
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Wait 0.01 seconds will delay for 0.3+ seconds in multiplayer as if you read its description it opperates to only 0.1 inaccuratly in single player. The acuracy is lowered further in multiplayer (longer delay). Thus the only way to really build in 0.01 seconds would be to use a timer (a special object) to delay your actions. Those remain 100% accurate in both single and multiplayer (same delay for both) and support a lower delay that the wait you are using (Wait (TriggerSleepAction()) only supports down to 0.1 seconds while timers cas easilly support 0.01 or lower times (including 0 which gives nearly no delay).
 
Status
Not open for further replies.
Top