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

Trigger Hezelp

Status
Not open for further replies.
Level 10
Joined
Aug 8, 2004
Messages
562
Here is a trigger i have, it's not working:

Unit - Order PusherG to Move To ((Position of TargetG) offset by ((Distance between (Position of CasterG) and (Position of TargetG)) + 800.00) towards (Angle from (Position of TargetG) to (Position of CasterG)) degrees)


it is supposed to make the unit move in front of the caster 800 clicks away.
 
Level 8
Joined
Nov 27, 2004
Messages
251
That Trigger leaks soooo much! dont ever try to make others like that.

bold are leaks

Unit - Order PusherG to Move To ((Position of TargetG) offset by ((Distance between (Position of CasterG) and (Position of TargetG)) + 800.00) towards (Angle from (Position of TargetG) to (Position of CasterG)) degrees)


the worst leak enemy lies there,locations!!!

i am not kidding.

to not leak you could have done this.

Set Tgl = (Position of TargetG)
set Csl = (Position of CasterG)
set Polar = offset by ((Distance between Csl and Tgl + 800.00) towards (Angle from Tgl to Csl degrees)

Unit - Order PusherG to Move To Polar


this would be much better

and you have 2 choices to remove leaks
1-Start Using Jass
2-Read Cubasis tutorial on wc3campaigns on how to remove leaks in gui (dont have link)

edit:found link for you :wink:
http://www.wc3campaigns.com/thread_view.php?t=55022
 
Level 10
Joined
Aug 8, 2004
Messages
562
hmm that doesnt seem to be the problem. let me graph it for you:

Heres What i want it to do:
*key*- C= Caster U=moving unit the --- = units path and the X= where i want U to move.

C...U--------X
or
X---------U...C
or
C
.
.
.
U
-
-
-
-
X
and such

here is whats happening:
*key* C= Caster U= Movng unit the ---- = units path *I WANT IT TO BE* +++++ = units path it is taking *NOT WHAT I WANT* xXx = poit he moves *NOT WANTED*


xXx++++++U...C...---------X
or
xXx++++++U...C
.
.
U
-
-
-
X

hope this cleared it up for you!
 
Status
Not open for further replies.
Top