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

Handles looped ambient effects around specific entities. More...

Inheritance diagram for SCR_ObjectPositionalInsects:
SCR_AmbientInsectsEffect

Public Member Functions

override void Update (float worldTime, vector cameraPos, float timeOfDay, float rainIntensity)
 Called by SCR_AmbientInsectsComponent.Update()
 
void GetClosestsEntities (vector cameraPos)
 Clears ClosestEntities array for each InsectType and then runs new querry to fill it again.
 
override void OnPostInit (SCR_AmbientSoundsComponent ambientSoundsComponent, SCR_AmbientInsectsComponent ambientInsectsComponent, SignalsManagerComponent signalsManagerComponent)
 Called by SCR_AmbientInsectsComponent in EOnPostInit()
 

Protected Member Functions

void ProcessEntity (notnull IEntity entity)
 Finds Entity for each InsectType and adds it to the array of closest entities.
 

Protected Attributes

int m_iMinimumMoveDistanceSq
 
float m_fSearchDistance
 
ref array< ref SCR_PositionalInsectTypem_aPositionalInsectType
 
ref array< ref SCR_InsectSpawnDefm_aSpawnDef = {}
 
vector m_vCameraPosLooped
 
- Protected Attributes inherited from SCR_AmbientInsectsEffect
SCR_AmbientSoundsComponent m_AmbientSoundsComponent
 
SCR_AmbientInsectsComponent m_AmbientInsectsComponent
 
SignalsManagerComponent m_LocalSignalsManager
 

Detailed Description

Handles looped ambient effects around specific entities.

Member Function Documentation

◆ GetClosestsEntities()

void SCR_ObjectPositionalInsects.GetClosestsEntities ( vector cameraPos)

Clears ClosestEntities array for each InsectType and then runs new querry to fill it again.

◆ OnPostInit()

override void SCR_ObjectPositionalInsects.OnPostInit ( SCR_AmbientSoundsComponent ambientSoundsComponent,
SCR_AmbientInsectsComponent ambientInsectsComponent,
SignalsManagerComponent signalsManagerComponent )

Called by SCR_AmbientInsectsComponent in EOnPostInit()

Implements SCR_AmbientInsectsEffect.

◆ ProcessEntity()

void SCR_ObjectPositionalInsects.ProcessEntity ( notnull IEntity entity)
protected

Finds Entity for each InsectType and adds it to the array of closest entities.

◆ Update()

override void SCR_ObjectPositionalInsects.Update ( float worldTime,
vector cameraPos,
float timeOfDay,
float rainIntensity )

Member Data Documentation

◆ m_aPositionalInsectType

ref array<ref SCR_PositionalInsectType> SCR_ObjectPositionalInsects.m_aPositionalInsectType
protected

◆ m_aSpawnDef

ref array<ref SCR_InsectSpawnDef> SCR_ObjectPositionalInsects.m_aSpawnDef = {}
protected

◆ m_fSearchDistance

float SCR_ObjectPositionalInsects.m_fSearchDistance
protected

◆ m_iMinimumMoveDistanceSq

int SCR_ObjectPositionalInsects.m_iMinimumMoveDistanceSq
protected

◆ m_vCameraPosLooped

vector SCR_ObjectPositionalInsects.m_vCameraPosLooped
protected

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