DebugBounds (script event)

From modwiki

Jump to: navigation, search

Description

Line drawing for debug visualization.

Usage

In your script type...

void debugBounds( vector color, vector mins, vector maxs, float lifetime )

Parameters

  • [color] - The color to draw the line.
  • [mins] - The minimum point for the bounding box.
  • [maxs] - The maximum point for the bounding box.
  • [lifetime] - The duration to display the line.

Examples

 
sys.debugBounds('1 0 0', '25 49 56', '54 88 79', 1);

Notes

This script event does not return any values.

Lifetime of 0 == 1 frame.


Personal tools
Main