How to Hide Floating Text In Fog?

Crusher

You can change this now in User CP.
Reaction score
121
Well in my map,floating text is visible in fog?How can I Fix that...?
 

Pharaoh_

The epic journey will soon begin... Prepare!
Reaction score
136
Ahm, i don't think you can actually :I (Unless you change its transparency to 100% after some time)
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
Try this:
variables: TempText (Floating Text), TempTextLoc (Point), TempPlayer (Player), TempForce (Player Group)
Code:
HideFloatingText
    Events
    Conditions
    Actions
        Floating Text - Hide TempText for (All players)
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                Set TempPlayer = (Player((Integer A)))
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (TempTextLoc is visible to TempPlayer) Equal to True
                    Then - Actions
                        Set TempForce = (Player group(TempPlayer))
                        Floating Text - Show TempText for TempForce
                        Custom script:   call DestroyForce( udg_TempForce )
                    Else - Actions
        Custom script:   call RemoveLocation( udg_TempTextLoc )
After you create the floating text, set it and its creating location into variables (TempText and TempTextLoc) and then run this trigger. This trigger, first, will hide the text for all players, then the loop runs to check if the TempTextLoc is visible(not fogged or masked) to TempPlayer, show the text for TempPlayer. TempPlayer is player 1 to player 12.
 

Crusher

You can change this now in User CP.
Reaction score
121
Only this and I'm done!

Code:
HideFloatingText
    Events
    Conditions
    Actions
        Floating Text - Hide TempText for (All players)
        For each (Integer A) from 1 to 12, do (Actions)
            Loop - Actions
                Set TempPlayer = (Player((Integer A)))
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
[COLOR="Red"][B]                    If - Conditions
                        (TempTextLoc is visible to TempPlayer) Equal to True[/B][/COLOR]
                    Then - Actions
                        Set TempForce = (Player group(TempPlayer))
                        Floating Text - Show TempText for TempForce
                        Custom script:   call DestroyForce( udg_TempForce )
                    Else - Actions
        Custom script:   call RemoveLocation( udg_TempTextLoc )

Can't find that

And btw,should be player Group Be empty or should I type 12 in Array?
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
And btw,should be player Group Be empty or should I type 12 in Array?

I think it is ok with empty so just leave it as empty.

Code:
(TempTextLoc is visible to TempPlayer) Equal to True
the above line is: Boolean Comparison: Visibility - Point Visible To Player

And I forgot the "Pick Player" :p
You can replace:
Code:
For each (Integer A) from 1 to 12, do (Actions)
    Loop - Actions
        Set TempPlayer = (Player((Integer A)))
with
Code:
Player Group - Pick every player in (All players) and do (Actions)
    Loop - Actions
        Set TempPlayer = (Picked player)
 

Crusher

You can change this now in User CP.
Reaction score
121
Only 1 problem Remains!

Now my files:

Custom script: call DestroyForce( udg_TempForce )
Custom script: Custom script: call RemoveLocation( udg_TempTextLoc )

Are separated with space as you can see!Do they need to be like that or?
 

Crusher

You can change this now in User CP.
Reaction score
121
I did but it's not working ...:) (Not the activation trigger,but in game,shows damage dealt in fog from another player)
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
I did but it's not working ...:) (Not the activation trigger,but in game,shows damage dealt in fog from another player)

But mine works :eek:
Have a look at my demo map.
Press Esc to disable fog and press it again to enable fog.
 

Attachments

  • [Tutorial] GenericUnitTakeDamage.w3x
    14.6 KB · Views: 97

Crusher

You can change this now in User CP.
Reaction score
121
It doesn't work on my map :(

Edit: Nvm Fixed it ,+rep to you.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top