• 🏆 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!

forward makes you go forward and other Q

Status
Not open for further replies.
Level 5
Joined
Jun 19, 2009
Messages
83
how do you make it so forward arrow makes you go forward
how do you make it so left arrow makes you go left
so on and so on

also how do i make it so the spell carrion swarm shoots straight infront of you without asking which direction
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
Here are simplified versions of trigger I'm using in m racing map.

  • Accelerate Begin
    • Events
      • Player - Player 1 (Red) Presses the Up Arrow key
    • Conditions
    • Actions
      • Trigger - Turn on Accelerate <gen>
  • Accelerate
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set MyPosition = Position of MyUnit
  • Unit - Order MyUnit to Move To MyPosition offset by SomeOffset towards MyFacing degrees)
    • Else - Actions
  • Accelerete End
    • Events
      • Player - Player 1 (Red) Releases the Up Arrow key
    • Conditions
    • Actions
      • Trigger - Turn off Accelerate <gen>
For turning do the same things, but make unit face facing of unit - 5 or so. And store the facing to a variable so Accelerate trigger can use it.

For the carrion swarm thing:

  • Untitled Trigger 001
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Starfall
    • Actions
      • Set TempReal = (Facing of (Triggering unit))
Starfall is an ability that insta-casts when you click the ability button. Copy it and delete all effects and damage etc.

Then add to that trigger the ceation of a dummy unit. Then attach carrion swarm special effect to it and move it forward with another, periodic trigger. If you have troubles with making that happen, I can do it for you.
 
Status
Not open for further replies.
Top