Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_FlagComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_FlagComponentClass
 

Functions

SCR_FlagComponentClass SCR_MilitaryBaseLogicComponentClass ChangeMaterial (ResourceName flagResource, ResourceName resourceMLOD=string.Empty)
 
bool IsFlagPole ()
 
ResourceName GetDefaultMaterial ()
 
ResourceName GetDefaultMLOD ()
 
IEntity GetFlagEntity ()
 
override void EOnInit (IEntity owner)
 
override void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 

Variables

protected bool m_bIsFlagPole
 
protected ResourceName m_sDefaultMaterial
 
protected ResourceName m_sDefaultMLOD
 

Function Documentation

◆ ChangeMaterial()

SCR_FlagComponentClass SCR_MilitaryBaseLogicComponentClass ChangeMaterial ( ResourceName  flagResource,
ResourceName  resourceMLOD = string.Empty 
)

Changes Material used on Flag or Sign Parameters: flagResource = material to be used, resourceMlod = MLOD , Flags doesn't need this, only signs

Parameters
[in]flagResource
[in]resourceMLOD

Definition at line 46 of file SCR_FlagComponent.c.

◆ GetDefaultMaterial()

ResourceName ChangeMaterial::GetDefaultMaterial ( )
Returns

Definition at line 20 of file SCR_FlagComponent.c.

◆ GetDefaultMLOD()

ResourceName ChangeMaterial::GetDefaultMLOD ( )
Returns

Definition at line 27 of file SCR_FlagComponent.c.

◆ GetFlagEntity()

IEntity GetFlagEntity ( )
Returns
entity with flag from slotComponent or return owner if component is directly on flag entity

Definition at line 91 of file SCR_FlagComponent.c.

◆ IsFlagPole()

bool ChangeMaterial::IsFlagPole ( )
Returns

Definition at line 13 of file SCR_FlagComponent.c.

Variable Documentation

◆ m_bIsFlagPole

protected bool m_bIsFlagPole

Definition at line 3 of file SCR_FlagComponent.c.

◆ m_sDefaultMaterial

protected ResourceName m_sDefaultMaterial

Definition at line 6 of file SCR_FlagComponent.c.

◆ m_sDefaultMLOD

protected ResourceName m_sDefaultMLOD

Definition at line 9 of file SCR_FlagComponent.c.