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

From COD Modding & Mapping Wiki
Share/Save/Bookmark
Jump to: navigation, search


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

Module: Debug

Summary:

Draw 3d text on screen


Call this on:

Example:

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.


Notes:

none