Make a model ot spell go sideways help!

Status
Not open for further replies.
Level 1
Joined
Feb 10, 2008
Messages
4
i need help if for example i have a model that goes up and down like star fall up and down how do u make it so that the spell goes side to side like shock wave.
 
Well, you can't. You need triggers for that:
  • Trigger1
  • Events
    • Unit - A unit starts the effect of an ability
  • Conditions
    • (Ability being cast) Equal to Shockwave (custom)
  • Actions
    • Set Point[1] = (Position of (Triggering unit))
    • Set Point[2] = (Point[1] offset by 80.00 towards (Facing of (Triggering unit)))
    • Set Point[3] = (Target Point of Ability being cast)
    • Unit - Create 1 Dummy model for (Owner of (Triggering unit)) at Point[2] facing (Facing of (Triggering unit))
    • Set Dummy = (Last created unit)
    • Trigger - Turn on Trigger2 <gen>
    • Custom script: call RemoveLocation (udg_Point[1])
    • Custom script: call RemoveLocation (udg_Point[2])
  • Trigger2
  • Events
    • Time - Every 0.03 seconds of game-time
  • Conditions
    • ((Dummy) is alive) Equal to True
  • Actions
    • Set Point[4] = (Position of (Dummy))
    • Set Point[5] = (Point[4] offset by 10.00 towards (Angle from (Point[4]) to (Point[3]))
    • Unit - Move (Dummy) instantly to (Point[5]) facing (Point[3])
    • If (All Conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (Distance between (Point[3]) and (Point[4])) Less than or Equal to 25.00
      • Then - Actions
        • Unit - Kill (Dummy)
        • > Do the rest actions here
        • Custom script: call RemoveLocation (udg_Point[3])
        • Else - Actions
    • Custom script: call RemoveLocation (udg_Point[4])
    • Custom script: call RemoveLocation (udg_Point[5])
Just make a unit based off Footman, with Copy and Paste, change Abilities - Normal to "Invulnerable" and "Locust". Give your unit the model you want from Art - Model file, scroll to Combat - Attacks Enabled -> Set it to None, Stats - Hide Minimap Display -> Set it to True, and Art - Shadow -> Set it to None.
 
Level 1
Joined
Feb 10, 2008
Messages
4
thxs child of bodom this is basically what i need but if i aim the spell with the trigger north it will fire a blust west if i fire east it will fire west and so on i need it to change when i fire
 
Status
Not open for further replies.
Top