![]() |
onObserverMode function.
Maybe also a flag automatically set when a player goes into observer mode (isobserver or something), though scripters could do that themselves if the function were added. It would be good if a server wanted to return trials back to the starting/unstick location or something when they entered observer mode.
|
agreed, big time
do this |
Quote:
Quote:
|
Quote:
Quote:
PHP Code:
Or would it be like the onPlayerLogout() function that you can only access the object for an amount of time? |
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. |
Quote:
|
| All times are GMT +2. The time now is 10:31 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.