- Joined
- Apr 23, 2011
- Messages
- 527
may have used the wrong type of header, pardon me
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?
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
-
Events
Last edited: