|
Arma Reforger Script API
|
Handles insects that are supposed to be spawned trees. More...
Public Member Functions | |
| override void | Update (vector cameraPos) |
| Performs updates to the Insect type. | |
Public Member Functions inherited from SCR_PositionalInsectType | |
| void | Init (notnull SCR_AmbientSoundsComponent ambientSoundsComponent, notnull SCR_ObjectPositionalInsects objectPositionalInsects, notnull SCR_AmbientInsectsComponent ambientInsectsComponent) |
| Initialises necessary things for 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. | |
Protected Member Functions | |
| void | ProcessTrees () |
| Processes closest trees 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. | |
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 |
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>() |
Static Protected Attributes inherited from SCR_PositionalInsectType | |
| static const int | INVALID = -1 |
Handles insects that are supposed to be spawned trees.
|
protected |
Processes closest trees and spawns Insects on correct positions.
| override void SCR_PositionalAmbientLeafParticles.Update | ( | vector | cameraPos | ) |
Performs updates to the Insect type.
Implements SCR_PositionalInsectType.