Arma Reforger Script API
|
BaseZeroingGenerator is an object used for generating zeroing information in Workbench. More...
Public Member Functions | |
proto external IEntity | GetOwnerEntity () |
Gets the owning entity of the generator object, which might or might not be the same as the owner of the Sights component. | |
proto external BaseSightsComponent | GetSights () |
Get the sights component that the zeroing is computed for. | |
proto external WeaponAnimationComponent | GetWeaponAnimationComponent () |
Get the Weapon animation component of the sights. | |
proto external void | SetPointInfoGeneration (bool doGenerate) |
Flag the generation of PointInfo's. | |
proto external void | SetProjectileResource (ResourceName resourceName) |
BaseZeroingGenerator is an object used for generating zeroing information in Workbench.
proto external IEntity BaseZeroingGenerator.GetOwnerEntity | ( | ) |
Gets the owning entity of the generator object, which might or might not be the same as the owner of the Sights component.
proto external BaseSightsComponent BaseZeroingGenerator.GetSights | ( | ) |
Get the sights component that the zeroing is computed for.
proto external WeaponAnimationComponent BaseZeroingGenerator.GetWeaponAnimationComponent | ( | ) |
Get the Weapon animation component of the sights.
This will might be nullptr if the sights do not have a WeaponAnimationComponent, like e.g. with the UGL's.
proto external void BaseZeroingGenerator.SetPointInfoGeneration | ( | bool | doGenerate | ) |
Flag the generation of PointInfo's.
Normal operation is to generate a PointInfo with every SightRangeInfo generated, but some zeroing mechanisms like the PiP scopes don't need it.
By default, PointInfo is generated, so this really only needs to be called in case they are unwanted.
doGenerate | boolean flag. If true, PointInfo's are generated. If false, they are not. |
proto external void BaseZeroingGenerator.SetProjectileResource | ( | ResourceName | resourceName | ) |