Call of Duty 4: Scripting Reference - Debug::Print3d

From COD Modding & Mapping Wiki
Revision as of 08:09, 31 July 2009 by CoDEmanX (talk | contribs) (New page: {{Function |Version=4 |Name=Print3d( <origin>, <text>, <color>, <alpha>, <scale>, <duration> ) |Module=Debug |Available |Summary=Draw 3d text on screen ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Print3d( <origin>, <text>, <color>, <alpha>, <scale>, <duration> )

Module: Debug


Draw 3d text on screen

Call this on:


Print3d( start, "START", (1.0, 0.8, 0.5), 1, 3 );

Required arguments:

  1. <origin> 3d position of text to be drawn
  2. <text> The text to draw on the screen

Optional arguments:

  1. <color> RGB color of the line in a vector, defaults to white
  2. <alpha> alpha value of the text (how transparent), defaults to 1
  3. <scale> size scale of the text, defaults to 1
  4. <duration> How many server frames the text should persist through.