Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_PositionalLightSourceInsect Interface Reference

Handles insects that are supposed to be spawned around light sources defined in prefab names array. More...

Inheritance diagram for SCR_PositionalLightSourceInsect:
SCR_PositionalInsectType

Public Member Functions

override void Init (notnull SCR_AmbientSoundsComponent ambientSoundsComponent, notnull SCR_ObjectPositionalInsects objectPositionalInsects, notnull SCR_AmbientInsectsComponent ambientInsectsComponent)
 Initialises necessary things for Insect type.
 
override void Update (vector cameraPos)
 Performs updates to the Insect type.
 
void OnObjectDamage (EDamageState state)
 
- Public Member Functions inherited from SCR_PositionalInsectType
set< BaseContainer > GetPrefabContainerSet ()
 Get prefab container set.
 
void AddClosestEntity (IEntity entity)
 Adds entity to the closest entities array for selected insect type.
 
void ClearClosestEntities ()
 Clears closest entities array for selected insect type.
 

Protected Member Functions

void ProcessLightsSources ()
 Processes closest light sources and spawns Insects on correct positions.
 
- Protected Member Functions inherited from SCR_PositionalInsectType
void RandomizeAnimation (IEntity entity)
 Randomises animation for Insect.
 
void SpawnParticle (ParticleEffectEntitySpawnParams spawnParams, int chance=100)
 Spawns particle with sound based on spawnParams and randomized chance.
 
void RemoveDistantInsects ()
 Deletes Insects that are too far away.
 

Protected Attributes

ref array< ResourceName > m_aPrefabNames
 
- Protected Attributes inherited from SCR_PositionalInsectType
ref array< ref SCR_InsectDefm_aInsectDef
 
int m_iSpawnChance
 
vector m_vOffset
 
SCR_AmbientSoundsComponent m_AmbientSoundsComponent
 
SignalsManagerComponent m_LocalSignalsManager
 
ref array< IEntity > m_aClosestEntities = {}
 
ref array< IEntity > m_aActiveEntities = {}
 
ref array< ref SCR_InsectParticlem_aParticles = {}
 
ref set< ref Resource > m_ResourceSet = new set<ref Resource>()
 
ref set< BaseContainer > m_PrefabContainerSet = new set<BaseContainer>()
 

Additional Inherited Members

- Public Attributes inherited from SCR_PositionalInsectType
ResourceName m_sSpawnDef
 
ref SCR_InsectSpawnDef m_SpawnDef
 
float m_fDayTimeCurve = 1
 
float m_fRainIntensityCurve = 1
 
- Static Protected Attributes inherited from SCR_PositionalInsectType
static const int INVALID = -1
 

Detailed Description

Handles insects that are supposed to be spawned around light sources defined in prefab names array.

Member Function Documentation

◆ Init()

override void SCR_PositionalLightSourceInsect.Init ( notnull SCR_AmbientSoundsComponent ambientSoundsComponent,
notnull SCR_ObjectPositionalInsects objectPositionalInsects,
notnull SCR_AmbientInsectsComponent ambientInsectsComponent )

Initialises necessary things for Insect type.

Implements SCR_PositionalInsectType.

◆ OnObjectDamage()

void SCR_PositionalLightSourceInsect.OnObjectDamage ( EDamageState state)
Parameters
[in]state

◆ ProcessLightsSources()

void SCR_PositionalLightSourceInsect.ProcessLightsSources ( )
protected

Processes closest light sources and spawns Insects on correct positions.

◆ Update()

override void SCR_PositionalLightSourceInsect.Update ( vector cameraPos)

Performs updates to the Insect type.

Implements SCR_PositionalInsectType.

Member Data Documentation

◆ m_aPrefabNames

ref array<ResourceName> SCR_PositionalLightSourceInsect.m_aPrefabNames
protected

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