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

[Trigger] 3-way shockwave

Status
Not open for further replies.
Level 9
Joined
Apr 23, 2011
Messages
527
may have used the wrong type of header, pardon me :p

so i was trying to make a shockwave trigger that goes in 3 directions (in a cone), but the second dummy doesn't seem to spawn. is there anything wrong with this trigger?
  • Spell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to spell
      • (Unit-type of (Casting unit)) Equal to unit
    • Actions
      • Custom script: local unit temp_unit
      • Custom script: local location temp_point
      • Custom script: set temp_point = GetUnitLoc(GetSpellAbilityUnit())
      • Custom script: call CreateNUnitsAtLoc( 1, 'O002', GetOwningPlayer(GetSpellAbilityUnit()), temp_point, ( GetUnitFacing(GetSpellAbilityUnit()) + 45.00 ) )
      • Custom script: set temp_unit = GetLastCreatedUnit()
      • Custom script: call UnitAddAbilityBJ( 'A002', temp_unit )
      • Custom script: call SetUnitAbilityLevelSwapped( 'A002', temp_unit, GetUnitAbilityLevelSwapped('A002', GetSpellAbilityUnit()) )
      • Custom script: call IssuePointOrderLocBJ( temp_unit, "shockwave", PolarProjectionBJ(GetSpellTargetLoc(), 100.00, ( GetUnitFacing(GetSpellAbilityUnit()) + 45.00 )) )
      • Custom script: call RemoveUnit( temp_unit )
      • Custom script: call CreateNUnitsAtLoc( 1, 'O002', GetOwningPlayer(GetSpellAbilityUnit()), temp_point, ( GetUnitFacing(GetSpellAbilityUnit()) - 45.00 ) )
      • Custom script: set temp_unit = GetLastCreatedUnit()
      • Custom script: call UnitAddAbilityBJ( 'A002', temp_unit )
      • Custom script: call SetUnitAbilityLevelSwapped( 'A002', temp_unit, GetUnitAbilityLevelSwapped('A002', GetSpellAbilityUnit()) )
      • Custom script: call IssuePointOrderLocBJ( temp_unit, "shockwave", PolarProjectionBJ(GetSpellTargetLoc(), 100.00, ( GetUnitFacing(GetSpellAbilityUnit()) - 45.00 )) )
      • Custom script: call RemoveUnit( temp_unit )
      • Custom script: call RemoveLocation( temp_point)
      • Custom script: set temp_unit = null
      • Custom script: set temp_point = null
 
Last edited:
Status
Not open for further replies.
Top