Warcraft III resources & community, 2003–2006 · archived

Trigger Hezelp

6 posts
#1

Trigger Hezelp

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.
#2
Do you want it to like teleport the moving unit? or do you want him to walk over, cause the walking is what your trigger is doing.
#3
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
#4
Nantuko_Husk
2-Read Cubasis tutorial on wc3campaigns on how to remove leaks in gui (dont have link)


Or read FAQ since it includes a link to that tutorial.

~Daelin
#5
bleh, i want to learn JASS but i have a mac (the tutorial says i need a program [for got what it was called] and it's only for windows) and i am also to lazy to read all of those confusing codes and such! :roll:

well anyways i will check out this link. thanks.
#6
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!