CLICK HERE to visit the new NS2 Wiki! Please do not rely on any information here as it may be inaccurate and/or out of date! For help with NS2, hop onto the official Discord server!

Lua/Objects/RenderLight

From NS2 community wiki
Jump to: navigation, search

Lua Object

Name

RenderLight

Inherits

nil

Direct Subclasses

Client/Server

Client

Created With

Client.CreateRenderLight()

Destroyed With

Client.DestroyRenderLight()

Description:




LightTypes
RenderLight.Type_Ambient
RenderLight.Type_Point
RenderLight.Type_Spot

Functions

bool RenderLight:GetCastsShadows ( )

Color RenderLight:GetColor ( )

Coords RenderLight:GetCoords ( )

bool RenderLight:GetIsVisible ( )

float RenderLight:GetInnerCone ( )

float RenderLight:GetIntensity ( )

float RenderLight:GetOuterCone ( )

float RenderLight:GetRadius ( )

LightType RenderLight:GetType ( )

RenderLight:SetCastsShadows ( bool castsShadows )

RenderLight:SetColor ( Color )

RenderLight:SetCoords ( Coords )

RenderLight:SetIsVisible ( bool isVisible )

RenderLight:SetInnerCone ( float )

RenderLight:SetIntensity ( float )

RenderLight:SetOuterCone ( float )

RenderLight:SetRadius ( float )

Lua/Objects/RenderLight/SetType