Warcraft III resources & community, 2003–2006 · archived

A bit of a problem

24 posts
#1

A bit of a problem

I want to make trigger so if unit enters within range of units of type or some units i will chose, he will die... but my editor doesn't allow me to do it :/...
I create unit with another trigger, then in same trigger set them in variables, first i did unit group... then i did each unit a different unit varibale... but in Unit enteres within "range" of "unit" ... i can't set "Unit" to variable... maybe theres another way?
#2
:lol:
haha just give the units u don't want them to touch permanent immolation with 99999 damage per second. clear the art-special and art-target and stats-buffs fields and it will work fine. unless of course, some units can get close to them and others can't.
#3
well... good idea... thu i'll have to set all my enemys invunreble well :) i'll do it this way, but maybe theres still a way with triggers? :/ i don't get it why in "Unit" selection i can't set a unit variable... maybe i need to update WE?
#4
immolation doesn't affect allied units. or if you want to give it to your own units you could give the enemy units you don't want to be effected magic immunity.
#5
well i gave unit immolation(permanent effect), but it doesn't do anything :/... i made my fire unit from Undead shade... maybe he can't be immolated ^^?.. well i've got a bigger problem at the moment... i really need to find Left and right from "Units facing angle" ... i mean so everything from (0;180) will be left and from (0;-180) - right :/ is that possible? coz i've been trying to do it for a few hours already :/

ye and what is "Angle between points" ? how can you get angle between 2 points withone zero coordinate ? :/... or does it put point with least "Y" on "X" line?
#6
-180? :P a circle is from 0 to 360. in WE 90-270 is right and 270-90 is left
#7
naaw i just need to find them in trigger ... I've got a Unit his Facing angle and a point, which can be on the left and on the right from unit, so if its on the left, i'll have to turn unit left, on right have to turn right
#8
oww u mean the units must move back and forth so u must try to escape with ur peon right? just order the enemys to target a point - patrol
#9
>_< No! i am trying to find if the point i command him to walk to is on the left or on the right from him to do the correct turning .... coz i am doing triggered turnings
#10
why with the facings? just make two regions. place the enemy on one of them and in trigger editor order him to patrol to the other region
#11
1st. coz its not patrolling unit, its main dodger, second coz when dodger turns his left and right turns too
#12
then again make two rects and put the dodger iin between. if u push the arrow button to the left, order it to move to the left rect, wait 0.5 sec and order it to stop so u have to push more times
#13
invisible units as a whole group cannot be immolated, or at least have their immolation do anything. you'd need to set Gameplay - Invisible Units Bestow Auras under Advanced -> Gameplay Constants to true for them to be able to be immolated. even then it might not be able to, since immolation might not be considered an aura according to the game. chances are 50/50 that it would work. if you want some units to be unaffected by that immolation, making them magic immune should do the trick. or change what they're Combat - Targeted as and change the immolation Stats - Targets Allowed.
#14
naw, you don't understand, i want to do the ice sliding, i've done the sliding, but i need to do the turning, so if i push somwhere on the left of his viewsite he would start triggered turning to the left like 1 percent per 0.01 second, but to do it i need to know if that point i issued order to walk to is on the LEFT or on the RIGHT from his viewsight to turn my variables of turning left or right on, which would start his turning regions can't move... and if dodger moves his left and right moves if he turns they turn too like if he is facing north his left is on west and his right is on east, If he is facing east his left is on north and his right is on south
#15
well i don't this shadow is invisible, coz i can click him ingame, and i removed his invisibility abbility when i made him... ;] i think its his fleeing abbility, but well thats not what really turtureing me, i can fix that but can't do with turnings....