• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Script to remove a "Real" variable???

Status
Not open for further replies.
Level 6
Joined
Sep 15, 2006
Messages
136
Hi, first of all, I'm not 100% sure that this leak, does this leak???

  • Unit - Make (Triggering unit) face ((Angle from (Position of (Triggering unit)) to (Target point of issued order)) + 180) over 0.00 seconds
If this leak, it should be the "((Angle from (Position of (Triggering unit)) to (Target point of issued order))", no???

If that's true I can put it in a "Real" type variable like this:
  • Set "TempReal" = (Angle from (Position of (Triggering unit)) to (Target point of issued order))
But how do I remove this leak??? (Please tell me the Custom Script...)
 
Level 19
Joined
May 1, 2008
Messages
1,130
you need 2 point variables
one for the position of the triggering unit and one for the target unit
and it will be like Angle from point1 to point2

and then use "call RemoveLocation(udg_point1)"
"call RemoveLocation(udg_point2)" or whatever your variable names are, but dont forget the udg_
 
Level 19
Joined
May 1, 2008
Messages
1,130
you cant store points in a real variable (from what i know)
you could make a point array and make point[1] position of triggering unit and point[2] etc
 
Status
Not open for further replies.
Top