TextDisplayRemoveObserver: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Needs_Checking|I have removed an observer and now I can't seem to put him back. If I'm not here in the morning, jbeta check cc resource, gamemode.lua, "onPlayerEnterVehicle", "onPlayerExitVehicle" events. --[[User:Ransom|Ransom]] 01:29, 20 September 2007 (CDT)}} | |||
__NOTOC__ | __NOTOC__ | ||
{{Server function}} | {{Server function}} |
Revision as of 06:29, 20 September 2007
This article needs checking. | |
Reason(s): I have removed an observer and now I can't seem to put him back. If I'm not here in the morning, jbeta check cc resource, gamemode.lua, "onPlayerEnterVehicle", "onPlayerExitVehicle" events. --Ransom 01:29, 20 September 2007 (CDT) |
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 display, player playerToRemove )
Required Arguments
- display: The textdisplay to remove the player from as an observer.
- playerToRemove: The player that should be removed from the textdisplay.
Example
This example creates a new display and a "Hello World" text item for a player. It then removes it from his screen 5 seconds later
display = textCreateDisplay ( ) --create the display textDisplayAddObserver ( display, thePlayer ) --add an observer newtextitem = textCreateTextItem ( "Hello World", 0.5, 0.5, "low", 255, 0, 0, 0, 1.0 ) --create our "Hello World" text item textDisplayAddText ( display, newtextitem ) --add this to the display setTimer ( textDisplayRemoveObserver, 5000,1, display, thePlayer ) --set a timer to remove this 5 seconds later.
See Also
- textCreateDisplay
- textCreateTextItem
- textDestroyDisplay
- textDestroyTextItem
- textDisplayAddObserver
- textDisplayAddText
- textDisplayGetObservers
- textDisplayIsObserver
- textDisplayRemoveObserver
- textDisplayRemoveText
- textItemGetColor
- textItemGetPosition
- textItemGetPriority
- textItemGetScale
- textItemGetText
- textItemSetColor
- textItemSetPosition
- textItemSetPriority
- textItemSetScale
- textItemSetText