|
Arma Reforger Script API
|
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array. More...
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_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>() |
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 |
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array.
| 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.
|
protected |
Processes closest entities and spawns Insects on correct positions.
| override void SCR_PositionalGenericInsect.Update | ( | vector | cameraPos | ) |
Performs updates to the Insect type.
Implements SCR_PositionalInsectType.
|
protected |