TActivePlayer.WorldText

From Soldat Community Wiki
Revision as of 11:52, 12 September 2016 by Mighty (talk | contribs) (Created page with " '''''procedure WorldText(Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale, X, Y: Single) ''''' Layer: layer on which to draw Text: message to be displayed...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
procedure WorldText(Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale, X, Y: Single) 
 Layer: layer on which to draw
 Text: message to be displayed
 Delay: how long the message will be visible (in ticks)
 Color: color of the text
 Scale: how big the font will be
 X: X coordinate on the map
 Y: Y oordinate on the map

Description

Draws a text on x:y coordinates on map (not soldat window).

Note: If you use WorldText again with the same layer, old one will get overwritten

Example

// display a text near the player with ID 1
Players[1].WorldText(2, ' <-- I''m here!', 100, $FFFFFF, 0.08, Players[1].X, Players[1].Y);