• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

need help with some variables...

Status
Not open for further replies.
Level 3
Joined
Mar 7, 2008
Messages
25
I relly hate this forum's search sistem.....:thumbs_down:.......

Never mind..... I wanna know the variables to make a unit go to a point with higher speed than 522....Plz need help...I'm new at war3 modeling.....:cute:
 
man...i know how to move it instantly....but wht i meant it was something as moving unit to a point continous and when the unit moves to the point the point moves forward.....

it's relly hard to explain
 
That's why we use periodic events. Every .04 seconds or so, move the unit towards a point, checking to see if it's reached it or not.
 
I don't think you understand what a variable is. A variable is a blank piece of data that stores information. They come in two varieties: global and local. If you set a variable to be 1, every time you use that variable, it will be one. Example:

  • set i = 1
Every time you use "i", it will have the value of one.

What you're looking for is a trigger that fires every .04 seconds and moves the unit towards an angle between the unit and the point, through the Unit - Move function and the disabling of collision, or SetUnitX() and SetUnitY() if you use JASS.
 
hmm....yeah....:hohum:.... i will search the site for a variables tutorial....


and btw i'm using GUI:wink:
 
Status
Not open for further replies.
Back
Top