• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] why fire emitter does nto show up?

Status
Not open for further replies.
the spell is warlock's demonic circle. the IF here aims to make and effect fire emitter for 2 seconds in the location where the warlock wwas before he teleport. the emitter does not show up, why?
  • Demonic Circle release
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Demonic Circle
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Warlock_DC_BurnGround Equal to True
        • Then - Actions
          • Set Warlock_DC_Burn_Pos = (Position of Hero_units[7])
          • Special Effect - Create a special effect at Warlock_DC_Burn_Pos using Doodads\Cinematic\TownBurningFireEmitter\TownBurningFireEmitter
          • Set Warlock_DC_Burn_effect = (Last created special effect)
          • Set Warlock_DC_burnGroundUnits = (Units within 50.00 of Warlock_DC_Burn_Pos)
          • Unit Group - Pick every unit in Warlock_DC_burnGroundUnits and do (Actions)
            • Loop - Actions
              • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 100.00)
          • Wait 2.00 seconds
          • Custom script: call DestroyGroup(udg_Warlock_DC_burnGroundUnits)
          • Custom script: call RemoveLocation(udg_Warlock_DC_Burn_Pos)
          • Special Effect - Destroy Warlock_DC_Burn_effect
        • Else - Actions
      • Special Effect - Destroy Warlock_DC_Effect
      • Unit - Move Hero_units[7] instantly to Warlock_DC_Loc
      • Camera - Pan camera for (Owner of Hero_units[7]) to (Position of Hero_units[7]) over 0.00 seconds
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on Demonic Circle cast <gen>
      • Custom script: call RemoveLocation(udg_Warlock_DC_Loc)
 
Level 8
Joined
Feb 3, 2013
Messages
277
First thing, I've tried using that fire effect and it doesn't work for me either. Try using a different fire effect like this one Environment\SmallBuildingFire\SmallBuildingFire2.mdl.
You can check for other working ones, there are a lot under Buff section.

Second thing, let's not use waits. Luckily for you, we have this Timed Effect All you need to do is CustomScript: call CreateTimedEffectOnLoc(firePathString, GetLocationX(udg_Warlock_DC_Burn), GetLocationY(udg_Warlock_DC_Burn), yourDuration) and it will play the burn effect for yourDuration seconds.

I don't know about all your other variables, but you didn't post all your other codes so I'll disregard that part.
 
Status
Not open for further replies.
Top