• 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.

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:
 
Level 3
Joined
Mar 7, 2008
Messages
25
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
 
Level 5
Joined
Aug 27, 2007
Messages
138
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.
 
Level 5
Joined
Aug 27, 2007
Messages
138
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.
 
Level 3
Joined
Mar 7, 2008
Messages
25
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.
Top