• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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