• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Issues with creating KB3D missiles? Won't face target.

Status
Not open for further replies.
Level 7
Joined
Aug 11, 2010
Messages
269
I'm having trouble creating missiles to work with arrows. They travel and move towards the target just fine, it's just since I'm using an arrow model they seem to refuse to face the correct way. It's a minor cosmetic issue but it's really bugging me!

Could anyone tell me how to fix this issue who's more familiar with the KB3D system than I am?
http://www.hiveworkshop.com/threads/knock-back-3d-mms-3d-v-3-2-1.242031 this is the system I'm referring to.

And here's my script.

  • HELR Aimed Shot Effect
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to [Hero - Elven Ranger] - Aimed Shot
    • Actions
      • -------- - - - Set Important Variables - - - --------
      • Set TempPoint = (Position of (Triggering unit))
      • -------- - - - Spell Effect - - - --------
      • Unit - Create 1 [Hero - Elven Ranger] - Aimed Shot - (Projectile Dummy) for Neutral Passive at TempPoint facing Default building facing degrees
      • -------- - - - Spell Effect - - - --------
      • -------- - - - KB3D Data - - - --------
      • Set KB3D_Unit = (Last created unit)
      • Set KB3D_Targeted_Unit = (Target unit of ability being cast)
      • Set KB3D_HomingMissile = True
      • Set KB3D_FaceAngle = True
      • Set KB3D_DisableUnit = True
      • Set KB3D_Speed = 600.00
      • Set KB3D_Accel = 100.00
      • Set KB3D_EndTrigger = HELR Aimed Shot Collide <gen>
      • Set KB3D_AllowOutSiding = False
      • Set KB3D_EndWhenHit = True
      • Set KB3D_KillWhenHit = True
      • Custom script: call ExecuteFunc( "KB3D_Registration" )
      • -------- - - - - - - - - - - - - --------
      • Custom script: call RemoveLocation(udg_TempPoint)
      • -------- - - - - - - - - - - - - --------
 
Level 7
Joined
Aug 11, 2010
Messages
269
Rotate the model in the war3model editor.
Won't work. The model is Vex's dummy, the origin and the direction that the model is facing is theoretically correct. Even if it did work, though, I'd still have the problem of the arrow not shifting degrees when nearing it's target. So the arrow would stay 270 degrees throughout it's entire flight.
 
Status
Not open for further replies.
Top