
09-01-2007, 02:13 PM
|
|
Graal Administration
|
Join Date: Jan 2000
Location: Admins
Posts: 11,693
|
|
|
There is now
onSwitchPlayerToObserver(pl)
onSwitchObserverToPlayer(pl)
player.isobserver
Also when the player is switched to/from observer mode the events onPlayerLogout(pl) and onPlayerLogin(pl) (for all scripts) and onActionPlayerOnline (for Control-NPC) are now invoked.
Observers are not visible to players, but on clientside you have the variable "ghostsnear" which say if there are ghosts or observers near the player.
Observers don't invoke any events, so there will not be any onPlayerEnters or similar, and they are not in the players[] array. They still appear in allplayers[] and level.players[] though and act like normal players, but once they are switched back to the normal player mode they will load the old attributes again. |
|
|
|