Ability able to target fog of war.

Grags_1977

Ultra Cool Member
Reaction score
32
Blah-5.jpg


As seen in the picture. I want to be able to target them crates there. But because it's in fog of war, the hero trys to get closer so he can see it before he'll cast.

Is there anyway around this?

EDIT: Ignore the insane stats the hero has, purely for testing purposes.

EDIT2: If i'm not clear, i'll upload a video to youtube showing exactly what i'm talking about. Including the bugs it causes.
 

neo34rd

New Member
Reaction score
3
If its possible change the base spell to something like blizzard or cone of fire. Those AoE spells usually fire off even when targeting areas in the fog.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
you can create an observer ward close enough to gain vision as a simple work around
 

Grags_1977

Ultra Cool Member
Reaction score
32
If its possible change the base spell to something like blizzard or cone of fire. Those AoE spells usually fire off even when targeting areas in the fog.
Not really tbh. I need to be able to target an object. Thanks anyway +rep

you can create an observer ward close enough to gain vision as a simple work around
Sounds interesting, i'll look into it. As per usual, I have to spread rep aroud before I can rep you :p
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
lol, dw about it, im about to hit 200 anyway, after that i dont think ill be super worried about rep >.<

and thats just a simple work around, there are more efficient triggers that could do it as well
 

Grags_1977

Ultra Cool Member
Reaction score
32
Meh doesn't work

I tried this

Trigger:
  • Rush
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Rush
    • Actions
      • Visibility - Disable fog of war
      • Special Effect - Destroy SpecialEffect_SFX
      • Wait 0.01 seconds
      • Sound - Play Rush &lt;gen&gt;
      • Set TempPoint[8] = (Position of Unit_Hero)
      • Special Effect - Create a special effect at TempPoint[8] using Abilities\Spells\Other\Drain\ManaDrainTarget.mdl
      • Set SpecialEffect_SFX = (Last created special effect)
      • Custom script: call RemoveLocation( udg_TempPoint[8] )
      • Animation - Change Unit_Hero&#039;s animation speed to 50.00% of its original speed
      • Custom script: call SetUnitAnimationByIndex(udg_Unit_Hero, 117)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Target destructible of ability being cast) Not equal to No destructible
        • Then - Actions
          • Set Destructible_TempOther = (Target destructible of ability being cast)
          • Trigger - Run Rush Destructible &lt;gen&gt; (ignoring conditions)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Target item of ability being cast) Not equal to No item
        • Then - Actions
          • Set Item_TempOther = (Target item of ability being cast)
          • Trigger - Run Rush Item &lt;gen&gt; (ignoring conditions)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Target unit of ability being cast) Not equal to No unit
        • Then - Actions
          • Set Unit_Rush = (Target unit of ability being cast)
          • Trigger - Run Rush Unit &lt;gen&gt; (ignoring conditions)
        • Else - Actions
      • Wait 2.00 seconds
      • Visibility - Enable fog of war


And because the object is in fog of war, the trigger is never ran ><
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
change the event to:
Trigger:
  • A unit is issued an order

idk whether it should be targeting a unit or point etc, but i know thats what you should have as the event
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
you have to check its order string (should be in the spell under object editor)
 

Grags_1977

Ultra Cool Member
Reaction score
32
Trigger:
  • Rush
    • Events
      • Unit - A unit Is issued an order targeting an object
    • Conditions
      • (Issued order) Equal to (Order(ensnare))
    • Actions


Same result, because the object is fogged out. The trigger never runs ><

I tested it everywhere else of course, where there was no fog of war, and the trigger ran as normal.
 

Ayanami

칼리
Reaction score
288
You could just use a dummy unit or something with very small vision (like 100 or 200) and create it on the crate location. That way, you'd be able to see it. Else, you can use a Vision Modifier via triggers.
 

Grags_1977

Ultra Cool Member
Reaction score
32
Thanks guys, i've decided this is far too much hastle for what it's worth. I have an ability called blinding light whicg can give a reveal effect.

ATTN Moderators, feal free to close this thread. Thanks :)
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
you can close it yourself with the admin tools up at the top ^^^
 

Grags_1977

Ultra Cool Member
Reaction score
32
I do not see these admin tools. I see thread tools, and the option to close thread isn't in there.
 

Ayanami

칼리
Reaction score
288
To close thread:

Press the edit button on any of your posts. Then press Go Advanced. From there, scroll all the way down. There should be a check box which says "Close this thread".
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top