How to make a unit on a point behind a caster?

nardretor

New Member
Reaction score
6
Im currently making an ability that summons a gigantic spider behind the caster, doing an attack animation, then it disappears, making all enemy units infront of it pushed back. The only thing i cant do is to get a point behind the caster. It's like this


E-E-E--------C---P
enemies---caster--point

Thanks for those who will help. Ask more questions if you like.
 

MateoSoetsu

New Member
Reaction score
9
Set the position of casting unit to a variable. Then use point with polar offset. Offset the new point 200 or so range from the position of the casting unit offset by 180 degrees. That should do what you want. And create the spider at that new position, facing the casting unit's facing, and play its cast/attack animation.
 

jackall

You can change this now in User CP.
Reaction score
37
should do if you use the caster's angle + 180 degrees in the offset
 

nardretor

New Member
Reaction score
6
Can you please show me a sample trigger this? probably the range between the point behind and the caster point is 2 centimeters based on screen.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Trigger:
  • Actions
    • Set TempPoint = (Position of (Triggering unit))
    • Set TempPoint2 = (TempPoint offset by 100.00 towards ((Facing of (Triggering unit)) + 180.00) degrees)


That "TempPoint2" is stationed 100 range behind triggering unit ;)
 

jig7c

Stop reading me...-statement
Reaction score
123
Trigger:
  • Actions
    • Set TempPoint = (Position of (Triggering unit))
    • Set TempPoint2 = (TempPoint offset by 100.00 towards ((Facing of (Triggering unit)) + 180.00) degrees)


That "TempPoint2" is stationed 100 range behind triggering unit ;)


if you did

Set TempPoint2 = (TempPoint offset by 100.00 towards ((Facing of (Triggering unit)) - 180.00) degrees)
(notice the - 180 degrees)

would this offset point be in front of the casting unit???
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Nope... That is the same thing :D

I just chose to do "+" instead :p
 

avalya

New Member
Reaction score
37
Since a complete circle would be 360 degrees, 180, whatever way, negative or positive, you put it in, will be the same since it's half of a circle.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top