| 
    Arma Reforger Script API
    
   | 
 
Base class that handles different insects based on their type. More...
  
Public Member Functions | |
| void | Init (notnull SCR_AmbientSoundsComponent ambientSoundsComponent, notnull SCR_ObjectPositionalInsects objectPositionalInsects, notnull SCR_AmbientInsectsComponent ambientInsectsComponent) | 
| Initialises necessary things for Insect type.   | |
| void | Update (vector cameraPos) | 
| Performs updates to the Insect type.   | |
| 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.   | |
Public Attributes | |
| ResourceName | m_sSpawnDef | 
| ref SCR_InsectSpawnDef | m_SpawnDef | 
| float | m_fDayTimeCurve = 1 | 
| float | m_fRainIntensityCurve = 1 | 
Protected Member Functions | |
| 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< ref SCR_InsectDef > | m_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_InsectParticle > | m_aParticles = {} | 
| ref set< ref Resource > | m_ResourceSet = new set<ref Resource>() | 
| ref set< BaseContainer > | m_PrefabContainerSet = new set<BaseContainer>() | 
Static Protected Attributes | |
| static const int | INVALID = -1 | 
Base class that handles different insects based on their type.
| void SCR_PositionalInsectType.AddClosestEntity | ( | IEntity | entity | ) | 
Adds entity to the closest entities array for selected insect type.
| [in] | entity | 
| void SCR_PositionalInsectType.ClearClosestEntities | ( | ) | 
Clears closest entities array for selected insect type.
| set< BaseContainer > SCR_PositionalInsectType.GetPrefabContainerSet | ( | ) | 
Get prefab container set.
| void SCR_PositionalInsectType.Init | ( | notnull SCR_AmbientSoundsComponent | ambientSoundsComponent, | 
| notnull SCR_ObjectPositionalInsects | objectPositionalInsects, | ||
| notnull SCR_AmbientInsectsComponent | ambientInsectsComponent ) | 
Initialises necessary things for Insect type.
| [in] | ambientSoundsComponent | |
| [in] | objectPositionalInsects | |
| [in] | ambientInsectsComponent | 
Implemented in SCR_PositionalGenericInsect, and SCR_PositionalLightSourceInsect.
      
  | 
  protected | 
Randomises animation for Insect.
      
  | 
  protected | 
Deletes Insects that are too far away.
      
  | 
  protected | 
Spawns particle with sound based on spawnParams and randomized chance.
| [in] | spawnParams | |
| [in] | chance | 
| void SCR_PositionalInsectType.Update | ( | vector | cameraPos | ) | 
Performs updates to the Insect type.
| [in] | cameraPos | 
Implemented in SCR_PositionalAmbientLeafParticles, SCR_PositionalGenericInsect, and SCR_PositionalLightSourceInsect.
      
  | 
  staticprotected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
| float SCR_PositionalInsectType.m_fDayTimeCurve = 1 | 
| float SCR_PositionalInsectType.m_fRainIntensityCurve = 1 | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
| ref SCR_InsectSpawnDef SCR_PositionalInsectType.m_SpawnDef | 
| ResourceName SCR_PositionalInsectType.m_sSpawnDef | 
      
  | 
  protected |