Unit.visionFrustum
Sets the vision frustum for a unit
Kind: Member
Environments: Game
Game
Set
Availability: Server only
Sets the vision frustum for a unit
* self.unit.visionFrustum = {
* { 3.0, math.rad( 80.0 ), math.rad( 80.0 ) },
* { 20.0, math.rad( 40.0 ), math.rad( 35.0 ) },
* { 40.0, math.rad( 20.0 ), math.rad( 20.0 ) }
* }
Parameters:
| Name | Type | Description |
|---|---|---|
frustumData |
table | Table of tables of 3 numbers, detectionRange, hFov and vFov |