I need help with reveal trigger

world23wc3

Member
Reaction score
6
Hi, I need help with this reveal trigger.

There is 4 players on my map.

And in the begining I want to make player 1,2,3,4 be able to see at Region 000.
But the problem is when player 1:s unit walk into Region 001 then the visibility over Region 000 shall be removed for player 1 only. Same thing shall happen when player 2, player 3 or player 4 walk into the same region.(Player 2 enters Region 001 = Player 2:s visibility will be removed from Region 000)

Can anyone help me with this?

Thanks!
 

Muddis

New Member
Reaction score
0
I hope this is what you are looking for.

Code:
Start
    Events
        Game - Map initialization
    Local Variables
    Conditions
    Actions
        Player Group - Pick each player in (All players) and do (Actions)
            Actions
                Visibility - Create a visibility revealer for player (Picked player) within Region 001
                Variable - Set View = (Last created revealer)

Enable
    Events
        Unit - Any Unit Leaves Region 001
    Local Variables
    Conditions
    Actions
        Player Group - Pick each player in (All players) and do (Actions)
            Actions
                Visibility - Create a visibility revealer for player (Picked player) within Region 001
                Variable - Set View = (Last created revealer)


Remove
    Events
        Unit - Any Unit Enters Region 001
    Local Variables
    Conditions
    Actions
        Player Group - Pick each player in (All players) and do (Actions)
            Actions
                Visibility - Destroy View

It's the best i can do :)
 

SerraAvenger

Cuz I can
Reaction score
234
No, that would do it for all players.

You should probably just use an visibility modifier array AreaRevealer [n][4] where n is the number of regions in your map.

Then you would have to register all the unit entering/leaving stuff.

Then you would have to do some simple linear region tracking (which region out of the n has been left, which has been entered) and enable/disable
AreaRevealer[EventPlayer()]
 
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