DebugArrow (script event)

From modwiki

Jump to: navigation, search

Description

Line drawing for debug visualization.

Usage

In your script type...

void debugArrow( vector color, vector start, vector end, float size, float lifetime )

Parameters

  • [color] - The color to draw the arrow.
  • [start] - The starting point of the arrow.
  • [end] - The ending point of the arrow.
  • [size] - The size of the arrow.
  • [lifetime] - The duration to display the arrow.

Examples

 
sys.debugArrow('0 0 1', '68 84 58', '87 87 54', 4, 1);

Notes

This script event does not return any values.

Lifetime of 0 == 1 frame.


Personal tools
Main