Hello Hive,
I have made a trigger in my 3v3 map that changes the terrain fog for the player depending on what part of the map the camera is focusing on. The trigger works as intended but the problem is that it sets the terrain fog for all players and I want it to use the local player, is this possible? Here is my trigger to show exactly how I'm doing it, again the trigger is working as intended (technically).
I have made a trigger in my 3v3 map that changes the terrain fog for the player depending on what part of the map the camera is focusing on. The trigger works as intended but the problem is that it sets the terrain fog for all players and I want it to use the local player, is this possible? Here is my trigger to show exactly how I'm doing it, again the trigger is working as intended (technically).
-
Check Camera Location
-
Events
- Time - Every 0.10 seconds of game time
- Conditions
-
Actions
- Trigger - Run Camera in Blizzard <gen> (checking conditions)
- Trigger - Run Camera in Throne of Kiljaeden <gen> (checking conditions)
- Trigger - Run Camera in Abyssal Maw <gen> (checking conditions)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Evaluate Camera in Blizzard <gen> conditions) Equal to False
- (Evaluate Camera in Throne of Kiljaeden <gen> conditions) Equal to False
- (Evaluate Camera in Abyssal Maw <gen> conditions) Equal to False
-
Then - Actions
- Environment - Reset fog to default values
- Else - Actions
-
If - Conditions
-
Events
-
Camera in Blizzard
- Events
-
Conditions
- (Target X of current camera view) Greater than or equal to (Min X of Blizzard Wind Region <gen>)
- (Target X of current camera view) Less than or equal to (Max X of Blizzard Wind Region <gen>)
- (Target Y of current camera view) Greater than or equal to (Min Y of Blizzard Wind Region <gen>)
- (Target Y of current camera view) Less than or equal to (Max Y of Blizzard Wind Region <gen>)
-
Actions
- Environment - Set fog to style Linear, z-start 0.00, z-end 8000.00, density 1.00 and color (100.00%, 100.00%, 100.00%)
-
Camera in Throne of Kiljaeden
- Events
-
Conditions
- (Target X of current camera view) Greater than or equal to (Min X of The Throne of Kiljaeden <gen>)
- (Target X of current camera view) Less than or equal to (Max X of The Throne of Kiljaeden <gen>)
- (Target Y of current camera view) Greater than or equal to (Min Y of The Throne of Kiljaeden <gen>)
- (Target Y of current camera view) Less than or equal to (Max Y of The Throne of Kiljaeden <gen>)
-
Actions
- Environment - Set fog to style Linear, z-start 0.00, z-end 8000.00, density 2.00 and color (55.00%, 0.00%, 0.00%)
-
Camera in Abyssal Maw
- Events
-
Conditions
- (Target X of current camera view) Greater than or equal to (Min X of The Abyssal Maw <gen>)
- (Target X of current camera view) Less than or equal to (Max X of The Abyssal Maw <gen>)
- (Target Y of current camera view) Greater than or equal to (Min Y of The Abyssal Maw <gen>)
- (Target Y of current camera view) Less than or equal to (Max Y of The Abyssal Maw <gen>)
-
Actions
- Environment - Set fog to style Linear, z-start 0.00, z-end 8000.00, density 4.00 and color (20.00%, 5.00%, 30.00%)