DIFF

class ItemOpticsTypeSource

ItemOpticsType ItemBaseType InventoryItemType EntityAIType EntityType

All members, including inherited

Methods 4

proto native void SetOptics2DTexture(int index, string textureName)

Set optics 2D model texture at provided selection index.

index
Selection index
textureName
Name of texture to set (/dz/.../*.paa)
proto native void SetOptics2DMaterial(int index, string materialName)

Set optics 2D material at provided selection index.

index
Selection index
materialName
Name of material to set (/dz/.../*.rvmat)
proto native int FindOptics2DSelection(string selectionName, bool ignoreCase = true)

Finds selection index by name.

selectionName
Name of selection to find
ignoreCase
Whether search ignores case sensitivity

Returns: Index of selection or -1 when none.

proto native bool IsUsingOptics2DModel()

Whether 2D model (`modelOptics`) is set and used for this type.