TextDisplayAddObserver: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
Line 16: Line 16:
textItem = textCreateTextItem ( "Hello World", 0.5, 0.5, "low", 255, 0, 0, 0, 1.0 )
textItem = textCreateTextItem ( "Hello World", 0.5, 0.5, "low", 255, 0, 0, 0, 1.0 )
textDisplayAddText ( textDisplay, textItem )</syntaxhighlight>
textDisplayAddText ( textDisplay, textItem )</syntaxhighlight>
==See Also==
{{Text Functions}}

Revision as of 20:24, 20 May 2006

Description

This function adds a player as an observer of a textdisplay. This allows the player to see any textitems that the textdisplay contains.

Syntax

void textDisplayAddObserver ( textdisplay textDisplay, player playerToAdd )

Required Arguments

Example

textDisplay = textCreateDisplay ()
textDisplayAddObserver ( textDisplay, player )
textItem = textCreateTextItem ( "Hello World", 0.5, 0.5, "low", 255, 0, 0, 0, 1.0 )
textDisplayAddText ( textDisplay, textItem )

See Also

Template:Text Functions