[General] Unit Location Trigger

Status
Not open for further replies.
Level 10
Joined
Nov 17, 2004
Messages
277
Hi, I have a unit whose projectiles are another type of unit.

I've created a trigger so that when it attacks something, a point ("Launch_Point") is generated at the attacker's location ("Location_Attacker"), offset by a bit in the direction of the facing angle of the attacker, and creates the projectile at "Launch_Point". For some reason, "Location_Attacker" doesn't seem to be consistently at the actual center of the attacking unit, but is rather always offset a little bit (irrespective of the facing angle of the unit).

The result is that the projectile isn't always coming from the same spot on the attacking unit, which is annoying from an animation perspective.

Any idea why this might be and what I can do to correct it?
 
If you mean that the projectile which spawns at launch_point is always at the side of the unit is because of the collision, you need to turn collision off in triggers and also in object editor make collision 0.

The projectile's collision was already turned off. But I fixed the problem: for some reason the location was consistently offset by 25 "spaces" towards 225 degrees, so I adjusted the spawn location to compensate. Thanks though.
 
Status
Not open for further replies.
Back
Top