TextDisplayAddText

From Multi Theft Auto: Wiki
Revision as of 20:11, 24 March 2006 by EAi (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This function adds a textitem to a textdisplay. This allows any observers of the textdisplay to see the textitem.

Syntax

textDisplayAddText ( textitem itemToAdd, textdisplay displayToAddTo )

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 );