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

[Spell] Simple Missile Creation

Status
Not open for further replies.
Level 5
Joined
Jul 31, 2011
Messages
103
SOLVED xD





*/******************************
Hi i created this thread because i need help.

I triying to create a missile trigger but this happend:

*The unit dont cause damage
*The missile dummy unit every time when i cast the spell appaer in the las position not in the caster position.

Here is the trigger:

Setting Variables
  • VicALV Seteo de variables
    • Acontecimientos
      • Unidad - A unit Comienza a lanzar una habilidad
    • Condiciones
      • (Ability being cast) Igual a Misil
    • Acciones
      • Set VicALV_Misil_Dummy = Ninguna unidad
      • Set VicALV_Casteador_Unidad = (Casting unit)
      • Set VicALV_Casteador_Punto = (Position of VicALV_Casteador_Unidad)
      • Set VicALV_Casteador_Jugador = (Owner of VicALV_Casteador_Unidad)
      • Set VicALV_Objetivo_Punto = (Target point of ability being cast)
      • Set VicALV_Casteador_Angulo = (Angle from VicALV_Casteador_Punto to VicALV_Objetivo_Punto)
      • Unidad - Create 1 Misil for VicALV_Casteador_Jugador at VicALV_Casteador_Punto facing VicALV_Casteador_Angulo degrees
      • Set VicALV_Misil_Unidad = (Last created unit)
      • Set VicALV_Nivel_Misil = (Level of Misil for VicALV_Casteador_Unidad)
      • Set VicALV_Misil_Distancia = (50 x VicALV_Nivel_Misil)
      • Set VicALV_Regulador = 0
      • Set VicALV_Zona_AOE = (300.00 + (10.00 x (Real(VicALV_Nivel_Misil))))
      • Set VicALV_Dano_AOE = (70.00 + (10.00 x (Real(VicALV_Nivel_Misil))))
      • Set VicALV_Misil_Punto = (Position of VicALV_Casteador_Unidad)
      • Detonador - Turn on VicALV Mover Dummy <gen>
Moving Dummy
  • VicALV Mover Dummy
    • Acontecimientos
      • Tiempo - Every 0.03 seconds of game time
    • Condiciones
    • Acciones
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • Si: Condiciones
          • VicALV_Regulador Menor que VicALV_Misil_Distancia
        • Entonces: Acciones
          • Unidad - Turn collision for VicALV_Misil_Unidad Apagado
          • Unidad - Turn collision for VicALV_Misil_Dummy Apagado
          • Unidad - Create 1 Dummy for VicALV_Casteador_Jugador at (VicALV_Misil_Punto offset by 15.00 towards VicALV_Casteador_Angulo degrees) facing Vista edificio predeterminada degrees
          • Set VicALV_Misil_Dummy = (Last created unit)
          • Set VicALV_Misil_Punto = (Position of VicALV_Misil_Dummy)
          • Set VicALV_Regulador = (VicALV_Regulador + 1)
          • Unidad - Move VicALV_Misil_Unidad instantly to VicALV_Misil_Punto, facing VicALV_Casteador_Angulo degrees
          • Unidad - Cause VicALV_Misil_Unidad to damage circular area after VicALV_Zona_AOE seconds of radius 500.00 at VicALV_Misil_Punto, dealing VicALV_Dano_AOE damage of attack type Normal and damage type Normal
          • Unidad - Add a 1.00 second Genérico expiration timer to VicALV_Misil_Dummy
        • Otros: Acciones
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • Si: Condiciones
              • VicALV_Regulador Igual a VicALV_Misil_Distancia
            • Entonces: Acciones
              • Unidad - Remove VicALV_Misil_Unidad from the game
              • Detonador - Turn off (This trigger)
            • Otros: Acciones
Cleaning Dummy
  • VicALV Dummy Limpiar
    • Acontecimientos
      • Unidad - A unit Muere
    • Condiciones
      • (Unit-type of (Dying unit)) Igual a Dummy
    • Acciones
      • Unidad - Remove (Dying unit) from the game
Cleaning Missile
  • VicALV Misil Limpiar
    • Acontecimientos
      • Unidad - A unit Muere
    • Condiciones
      • (Unit-type of (Dying unit)) Igual a Misil
    • Acciones
      • Unidad - Remove (Dying unit) from the game
Thanks for the help!:ogre_hurrhurr:

Map in Epicwar:

https://www.epicwar.com/maps/259146/
 
Last edited:
Status
Not open for further replies.
Top