class ItemOpticsTypeSource
ItemOpticsType › ItemBaseType › InventoryItemType › EntityAIType › EntityType
All members, including inherited
Methods 4
Set optics 2D model texture at provided selection index.
index- Selection index
textureName- Name of texture to set (/dz/.../*.paa)
Referenced by ItemOptics.OnDrawOptics2D()
Set optics 2D material at provided selection index.
index- Selection index
materialName- Name of material to set (/dz/.../*.rvmat)
Referenced by ItemOptics.OnDrawOptics2D()
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.
Referenced by ItemOptics.InitReddotData()
proto native bool IsUsingOptics2DModel()Whether 2D model (`modelOptics`) is set and used for this type.
Referenced by ItemOptics.IsUsingOptics2DModel()