I am having some problems with my map and was hoping some one here could help me...
How do i make a revealer for the people that are not playing but watching? What i have tried: creating a revealer for players 1 and 4 (the watchers) it works offline, but as soon as i upload it, it does not create the revelers. If i need to i can upload the map for people to look at. Thanks
I did something to as close to that as i could and when i try testing it it comes up with an error
PlayerGroupLoopBegin(PlayerGroupAll());
while (!PlayerGroupLoopDone()) {
if ((PlayerGroupActive() == PlayerGroupSingle(gv_observers))) {
PlayerGroupAdd(gv_observers, 0);
PlayerGroupAdd(gv_observers, 1);
PlayerGroupAdd(gv_observers, 2);
PlayerGroupAdd(gv_observers, 3);
PlayerGroupAdd(gv_observers, 4);
}
else {
something in that mumble jumble is preventing it from saving
Player Group - Pick each player in (All players) and do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Status of player 4) == Playing
Then
Player Group - Add player 4 to Observers
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Status of player 8) == Playing
Then
Player Group - Add player 8 to Observers
Else
Visibility - Create a visibility revealer for player 4 within (Entire map)
Visibility - Create a visibility revealer for player 8 within (Entire map)
not working
I backspaced what i did before the error, but maybe you can figure out what i am trying to do and possibly tell me if what i am attempting is possible.
if need be i will try getting the error to come back lol
how do i make it with the player group as you mentioned before ;)
I want to place player 4 and Player 8 as observers
The player group Not working.
Do i've to do a condition if player in team 4 or so?
That seems to be working for me... Thanks so much. On another note is it possible or easy to make a region follow a unit? that way the watchers can follow the units movement more smoothly then having to pan the camera when it moves from one region to the next?
@DrHu: Go
i set them to users
i assume cause i'm the only player it makes me as player 1 and not player 4
I thought if i join team 4 or team 8 i get counted as player 4 or 8
you just need conditions that separate them from the players. you don't have to be checking for what number player they are but, it can be what team theyre in or what team theyre not in.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I am having some problems with my map and was hoping some one here could help me...
How do i make a revealer for the people that are not playing but watching? What i have tried: creating a revealer for players 1 and 4 (the watchers) it works offline, but as soon as i upload it, it does not create the revelers. If i need to i can upload the map for people to look at. Thanks
add the observers to a playergroup and create revealer for people within that group
how exactly do i go about adding the observers to the playergroup?
@DrHu: Go
I did something to as close to that as i could and when i try testing it it comes up with an error
PlayerGroupLoopBegin(PlayerGroupAll()); while (!PlayerGroupLoopDone()) { if ((PlayerGroupActive() == PlayerGroupSingle(gv_observers))) { PlayerGroupAdd(gv_observers, 0); PlayerGroupAdd(gv_observers, 1); PlayerGroupAdd(gv_observers, 2); PlayerGroupAdd(gv_observers, 3); PlayerGroupAdd(gv_observers, 4); } else { something in that mumble jumble is preventing it from saving
can you post the map?
i tried something similar
Player Group - Pick each player in (All players) and do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Status of player 4) == Playing
Then
Player Group - Add player 4 to Observers
Else
General - If (Conditions) then do (Actions) else do (Actions)
If
(Status of player 8) == Playing
Then
Player Group - Add player 8 to Observers
Else
Visibility - Create a visibility revealer for player 4 within (Entire map)
Visibility - Create a visibility revealer for player 8 within (Entire map)
not working
I backspaced what i did before the error, but maybe you can figure out what i am trying to do and possibly tell me if what i am attempting is possible.
if need be i will try getting the error to come back lol
@netherdragon: Go
whats the condition to be a observer?
@DrHu: Go
The condition is that the player is in the game... basically right from the start. The players that move is computer controlled
@netherdragon: Go
oh in that case, theres really no need for playergroups, its just:
how do i make it with the player group as you mentioned before ;)
I want to place player 4 and Player 8 as observers
The player group Not working.
Do i've to do a condition if player in team 4 or so?
That seems to be working for me... Thanks so much. On another note is it possible or easy to make a region follow a unit? that way the watchers can follow the units movement more smoothly then having to pan the camera when it moves from one region to the next?
@bookerTier: Go
why did you put
under else?
@netherdragon: Go
try using
I didn't its outside the condition
i pasted the code at the inititialization trigger
@bookerTier: Go
are 4 and 8 computers?
@DrHu: Go i set them to users
i assume cause i'm the only player it makes me as player 1 and not player 4
I thought if i join team 4 or team 8 i get counted as player 4 or 8
@bookerTier: Go
i doesnt matter which team you join, its the order you join the game. so whether youre in team 4 or 8 , youre still player 1
@DrHu: Go
hm well so what do i've to do to set observers?
@bookerTier: Go
you just need conditions that separate them from the players. you don't have to be checking for what number player they are but, it can be what team theyre in or what team theyre not in.