TextDisplayRemoveObserver: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Server function}} | |||
==Description== | ==Description== | ||
This function removes a [[player]] observer of a [[textdisplay]]. This stops the [[player]] from being able to see [[textitem]]s that the [[textdisplay]] contains. | This function removes a [[player]] observer of a [[textdisplay]]. This stops the [[player]] from being able to see [[textitem]]s that the [[textdisplay]] contains. |
Revision as of 17:37, 15 August 2007
Description
This function removes a player observer of a textdisplay. This stops the player from being able to see textitems that the textdisplay contains.
Syntax
void textDisplayRemoveObserver ( textdisplay textDisplay, player playerToRemove )
Required Arguments
- textDisplay: The textdisplay to add the player to as an observer.
- playerToRemove : The player that should be removed from the textdisplay.
Example
textDisplay = textCreateDisplay () textDisplayAddObserver ( textDisplay, player ) textDisplayRemoveObserver ( textDisplay, player ) textItem = textCreateTextItem ( "Hello World", 0.5, 0.5, "low", 255, 0, 0, 0, 1.0 ) textDisplayAddText ( textDisplay, textItem )