Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:1.30

Description

Description:Draws a visualization in the editor, indicating a units view cone.

Syntax

Syntax:unit setDrawFrustum [mode, size, color]
Parameters:
  • unit: Object - Unit to draw the frustum for.
  • mode: Number - Where to draw indicator. Can be:
    • 0: None
    • 1: 2D map
    • 2: 3D map
    • 3: Both 2D and 3D map
  • size: Number - Size of cone in meters.
  • color: Color - Color of cone (optional).
Return Value:Nothing

Examples

Examples:
player setDrawFrustum [3, 20, [1,1,1,0.5]];

Additional Information

See also: drawFrustum
Multiplayer:
Problems:

Notes