• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[General] Unit Location Trigger

Status
Not open for further replies.
Level 10
Joined
Nov 17, 2004
Messages
275
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?
 
Level 10
Joined
Nov 17, 2004
Messages
275
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.
Top