DayZ Scripts
PC Stable Documentation
 
Loading...
Searching...
No Matches
ItemOpticsType Class Reference

Private Member Functions

proto native void SetOptics2DTexture (int index, string textureName)
 Set optics 2D model texture at provided selection index.
 
proto native void SetOptics2DMaterial (int index, string materialName)
 Set optics 2D material at provided selection index.
 
proto native int FindOptics2DSelection (string selectionName, bool ignoreCase=true)
 Finds selection index by name.
 
proto native bool IsUsingOptics2DModel ()
 Whether 2D model (modelOptics) is set and used for this type.
 

Member Function Documentation

◆ FindOptics2DSelection()

proto native int FindOptics2DSelection ( string  selectionName,
bool  ignoreCase = true 
)
private

Finds selection index by name.

Parameters
selectionNameName of selection to find
ignoreCaseWhether search ignores case sensitivity
Returns
Index of selection or -1 when none.

Referenced by ItemOptics::InitReddotData().

◆ IsUsingOptics2DModel()

proto native bool IsUsingOptics2DModel ( )
private

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

Referenced by ItemOptics::IsUsingOptics2DModel().

◆ SetOptics2DMaterial()

proto native void SetOptics2DMaterial ( int  index,
string  materialName 
)
private

Set optics 2D material at provided selection index.

Parameters
indexSelection index
materialNameName of material to set (/dz/.../*.rvmat)

Referenced by ItemOptics::OnDrawOptics2D().

◆ SetOptics2DTexture()

proto native void SetOptics2DTexture ( int  index,
string  textureName 
)
private

Set optics 2D model texture at provided selection index.

Parameters
indexSelection index
textureNameName of texture to set (/dz/.../*.paa)

Referenced by ItemOptics::OnDrawOptics2D().


The documentation for this class was generated from the following file: