HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Force Observers?

08-28-2007, 06:32 PM#1
Taur
Is there a way to force a player to become an observer during the game? Will just defeating him and telling him to press continue work?
08-28-2007, 06:54 PM#2
Strilanc
... just kill all of his units and zero his resources.
08-28-2007, 07:11 PM#3
Histenchist
Quote:
Originally Posted by Strilanc
... just kill all of his units and zero his resources.
I don't think that will give him/her the same effect.
08-28-2007, 09:37 PM#4
DioD
observer is integer player state.

SetPlayerState(Player(1),PLAYER_STATE_OBSERVER,1)

any non zero will make player observer
zero will turn him back

function possibly typed incorrect dont have any jass tool to test.
08-29-2007, 02:24 PM#5
Taur
Quote:
Originally Posted by DioD
observer is integer player state.

SetPlayerState(Player(1),PLAYER_STATE_OBSERVER,1)

any non zero will make player observer
zero will turn him back

function possibly typed incorrect dont have any jass tool to test.
It works thank you, + rep.