Hmm... this is weird i cant spot any mistake in this trigger below:
When i cast the ability on the unit it will move to a location wif the caster and it will move back to the point where the caster started casting his ability in 15 seconds. This is my trigger: :banghead:
Is there any problem with the trigger above?
When i cast the ability on the unit it will move to a location wif the caster and it will move back to the point where the caster started casting his ability in 15 seconds. This is my trigger: :banghead:
Trigger:
- Invitation to the Netherworld
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Invite to Netherworld
- Actions
- Set Netherworld_Caster = (Casting unit)
- Set Netherworld_CasterLoc = (Position of Netherworld_Caster)
- Set Netherworld_Target = (Target unit of ability being cast)
- Set Netherworld_TargetLoc = (Position of Netherworld_Target)
- Set Netherworld_LandPoint = (Center of Netherworld <gen>)
- Set Netherworld_DummyWorld = (Center of Dummy World <gen>)
- Wait 0.50 seconds
- Unit - Create 1 Dummy Mark of Realword for (Owner of Netherworld_Caster) at Netherworld_CasterLoc facing Default building facing degrees
- Set Netherworld_DummyCaster = (Last created unit)
- Set Netherworld_DummyCasterLoc = (Position of Netherworld_DummyCaster)
- Unit - Add a 18.00 second Generic expiration timer to Netherworld_DummyCaster
- Unit - Move Netherworld_Caster instantly to Netherworld_LandPoint
- Unit - Move Netherworld_Target instantly to Netherworld_LandPoint
- Camera - Pan camera for (Owner of Netherworld_Caster) to Netherworld_LandPoint over 0.00 seconds
- Camera - Pan camera for (Owner of Netherworld_Target) to Netherworld_LandPoint over 0.00 seconds
- Unit - Create 1 Dummy Marker for (Owner of Netherworld_Caster) at Netherworld_DummyWorld facing Default building facing degrees
- Set Netherworld_Dummy1 = (Last created unit)
- Unit - Set level of NW for Netherworld_Dummy1 to (Level of Invite to Netherworld for Netherworld_Caster)
- Unit - Add a 15.00 second Generic expiration timer to Netherworld_Dummy1
- Wait 15.00 seconds
- Unit - Move Netherworld_Caster instantly to Netherworld_DummyCasterLoc
- Unit - Move Netherworld_Target instantly to Netherworld_DummyCasterLoc
- Special Effect - Create a special effect at Netherworld_CasterLoc using Objects\Spawnmodels\Other\ToonBoom\ToonBoom.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect at Netherworld_CasterLoc using Objects\Spawnmodels\Undead\UndeadDissipate\UndeadDissipate.mdl
- Special Effect - Destroy (Last created special effect)
- Wait 2.20 seconds
- Special Effect - Create a special effect at Netherworld_CasterLoc using Objects\Spawnmodels\Undead\UDeathMedium\UDeath.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect at Netherworld_CasterLoc using Objects\Spawnmodels\Undead\UndeadDissipate\UndeadDissipate.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_Netherworld_CasterLoc)
- Custom script: call RemoveLocation(udg_Netherworld_TargetLoc)
- Custom script: call RemoveLocation(udg_Netherworld_DummyCasterLoc)
- Custom script: call RemoveLocation(udg_Netherworld_LandPoint)
- Custom script: call RemoveLocation(udg_Netherworld_DummyWorld)
- Events
Is there any problem with the trigger above?