TextCreateDisplay

From Multi Theft Auto: Wiki
Revision as of 18:47, 21 August 2007 by Arc (talk | contribs)
Jump to navigation Jump to search

A text display is like a canvas that can contain many items of text. Each display can be seen by multiple observers (players) and each player can see multiple displays.

Syntax

textdisplay textCreateDisplay ()

Required Arguments

This function has no arguments.

Example

myTextDisplay = textCreateDisplay ()                            -- create a text display
textDisplayAddObserver ( myTextDisplay, myPlayer )              -- make it visible to a player
myTextItem = textCreateTextItem ( "Hello world!", 0.5, 0.5 )    -- create a text item for the display
textDisplayAddText ( myTextDisplay, myTextItem )                -- add it to the display so it is displayed

See Also