- Joined
- Jun 15, 2018
- Messages
- 195
Hello, I would like to make observers in my game as the default option / or referees.
I created a trigger that I saw somewhere on the internet but there is one problem.
Let's say everything is fine but I can't see HP BARS.
I've heard of another method that would look like this:
This one doesn't work because the player can't see anything on the map.
Why do I want to do it this way?
I don't want to make visible area for playable map area coz I want to keep the vision of two teams like it:
Also as an observer when I click on a player I can see his resources:
My questions are:
1. How to make it work? Or how to create observers as default with vision like above, working hp bars and click on player showing resources?
2. If we find this method somehow is it possible to hide the observer player on the loading screen?
Thanks for the help
I created a trigger that I saw somewhere on the internet but there is one problem.
-
Melee Initialization
-
Events
-
Time - Elapsed game time is 2.00 seconds
-
-
Conditions
-
Actions
-
Game - Set Allow observers to On
-
Game - Set Observers on defeat to On
-
For each (Integer A) from 13 to 24, do (Actions)
-
Loop - Actions
-
Set VariableSet TempPlayer = (Player((Integer A)))
-
Player - Hide TempPlayer in the post-game score screen
-
Game - Defeat TempPlayer with the message: <Empty String>
-
Dialog - Show MenuDialog for TempPlayer
-
Dialog - Hide MenuDialog for TempPlayer
-
Custom script: call SetPlayerState( udg_TempPlayer, PLAYER_STATE_OBSERVER, 1)
-
-
-
Cinematic - Clear the screen of text messages for (All players).
-
-
Let's say everything is fine but I can't see HP BARS.
I've heard of another method that would look like this:
-
Melee Initialization
-
Events
-
Time - Elapsed game time is 2.00 seconds
-
-
Conditions
-
Actions
-
Game - Set Allow observers to On
-
Wait 2.00 seconds
-
For each (Integer A) from 13 to 24, do (Actions)
-
Loop - Actions
-
Set VariableSet TempPlayer = (Player((Integer A)))
-
Custom script: call SetPlayerState( udg_TempPlayer, PLAYER_STATE_OBSERVER, 1)
-
Player - Hide TempPlayer in the post-game score screen
-
-
-
-
-
Custom script: call SetPlayerState( udg_TempPlayer, PLAYER_STATE_OBSERVER, 1)
This one doesn't work because the player can't see anything on the map.
Why do I want to do it this way?
I don't want to make visible area for playable map area coz I want to keep the vision of two teams like it:
Also as an observer when I click on a player I can see his resources:
My questions are:
1. How to make it work? Or how to create observers as default with vision like above, working hp bars and click on player showing resources?
2. If we find this method somehow is it possible to hide the observer player on the loading screen?
Thanks for the help