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

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

Inheritance diagram for SCR_PositionalGenericInsect:
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.
 
- 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 ProcessEntitySources ()
 Processes closest entities 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 selected prefabs defined in prefab names array.

Member Function Documentation

◆ Init()

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

Initialises necessary things for Insect type.

Implements SCR_PositionalInsectType.

◆ ProcessEntitySources()

void SCR_PositionalGenericInsect.ProcessEntitySources ( )
protected

Processes closest entities and spawns Insects on correct positions.

◆ Update()

override void SCR_PositionalGenericInsect.Update ( vector cameraPos)

Performs updates to the Insect type.

Implements SCR_PositionalInsectType.

Member Data Documentation

◆ m_aPrefabNames

ref array<ResourceName> SCR_PositionalGenericInsect.m_aPrefabNames
protected

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