| 02-21-2007, 11:26 PM | #2 |
please use the GUI tag over your code, its 7 icons right of the "quote" tag ALSO... Try Trigger: ![]() If Facing Of Triggering unit greater than or equal to Facing Of Target Unit of Ability Being Cast - 160![]() If Facing Of Triggering unit less than or equal to Facing Of Target Unit of Ability Being Cast - 200and have - Or Any conditions are true, you want both of these to be true, so its greater than 160, and less than 200 |
| 02-21-2007, 11:31 PM | #3 | |
Quote:
Unfortunately your suggestion is kind of how I started out before I was told to change it. Although it would seem to work, it's terribly inaccurate as it doesn't take in their relative positions to one another when determining if it is from behind. |
| 02-21-2007, 11:38 PM | #4 |
Then remove the Or - Any Conditions are true AS that will do it if angle is less than the facing of the target unit of ability being cast - 200 or if its greater than targ unit of abl being cast - 160 it will select 1, not both... therefore messing up |
| 02-22-2007, 12:02 AM | #5 |
| 02-22-2007, 12:38 AM | #6 | |
Quote:
I tried importing your Backstab system into my map, but I always get a compile error on line 6311 where it expects a name. Is there something I'm not doing right? I imported all the variables. |
| 02-22-2007, 01:21 AM | #7 |
My system? None of those are mine. Post what you're trying to import/screenshots of what you've done and maybe I can troubleshoot. |
| 02-22-2007, 01:27 AM | #8 |
The error comes from this line of code: Code:
set udg_Angle = Angles_GetAngleDifference( GetUnitFacing(GetTriggerUnit()), GetUnitFacing(GetAttacker()) ) Line 6311: Expected a name. What the variable is is anybody's guess. |
| 02-22-2007, 01:45 AM | #9 |
Did you make a varible of type 'real' called "Angle"? Capitilization matters, and the "udg_" is just a JASS thing that stands for 'User defined global', which is attached to every variable declared in the variable editor. |
| 02-22-2007, 02:12 AM | #10 |
Yes, I'll try making a new variable with the same name though. |
| 02-22-2007, 03:16 AM | #11 |
You could also try disabling the line that says Trigger: Custom script: local real udg_Angle |
| 02-22-2007, 11:42 AM | #12 |
Yeah, I'm still getting the same compile error. |
| 02-23-2007, 02:07 AM | #13 |
I should add that it doesn't crash the map or disable the trigger. It just gives the error and leaves the trigger as is when I save. |
| 02-23-2007, 06:18 AM | #15 |
wewt, my thread was referenced. yaaaay ![]() |
