Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
BaseCollimatorSightsComponent.c
Go to the documentation of this file.
1 /*
2 ===========================================
3 Do not modify, this script is generated
4 ===========================================
5 */
6 
12 class BaseCollimatorSightsComponentClass: SightsComponentClass
13 {
14 }
15 
16 class BaseCollimatorSightsComponent: SightsComponent
17 {
23  proto external void SetReticleSize(float angularSize, float reticlePortion);
25  proto external float GetReticleAngularSize();
27  proto external float GetReticlePortion();
29  proto external int GetNumReticles();
31  proto external bool IsReticleValid(int index);
35  proto external int GetCurrentReticleShape();
37  proto external void ReticleNextShape();
39  proto external void ReticlePreviousShape();
41  proto external bool SetReticleShapeByIndex(int iIndex);
43  proto external int GetNumColors();
45  proto external int IsColorValid(int index);
49  proto external int GetCurrentColor();
51  proto external void ReticleNextColor();
53  proto external void ReticlePreviousColor();
55  proto external bool SetReticleColorByIndex(int iIndex);
56 
57  // callbacks
58 
60  event void UpdateReticlePosition(float u, float v, float uScale, float vScale);
62  event void OnPostInit(IEntity owner);
64  event void UpdateReticleShapeIndex(int index);
66  event void UpdateReticleColor(vector inner, vector glow);
67  event void OnSightADSActivate();
68  event void OnSightADSDeactivated();
69 }
70 
GetNumColors
proto external int GetNumColors()
Get the number of reticle colors.
BaseCollimatorReticleColor
Definition: BaseCollimatorReticleColor.c:12
ReticlePreviousShape
proto external void ReticlePreviousShape()
Set the previous reticle shape. This always works, but might not do anything if only one reticle is d...
GetNumReticles
proto external int GetNumReticles()
Get the number of reticle infos.
SetReticleShapeByIndex
proto external bool SetReticleShapeByIndex(int iIndex)
Set reticle shape by index. Returns true if successful.
IsColorValid
proto external int IsColorValid(int index)
Is color index valid.
UpdateReticlePosition
event void UpdateReticlePosition(float u, float v, float uScale, float vScale)
Called to update the sight position U/V.
GetReticlePortion
proto external float GetReticlePortion()
Get the default portion of the reticle that covers the given angular size.
IsReticleValid
proto external bool IsReticleValid(int index)
Is reticle index valud.
ReticlePreviousColor
proto external void ReticlePreviousColor()
Set the previous reticle color. This always works, but might not do anything if only one or no color ...
ReticleNextShape
proto external void ReticleNextShape()
Set the next reticle shape. This always works, but might not do anything if only one reticle is defin...
OnPostInit
event void OnPostInit(IEntity owner)
Called on PostInit when all components are added.
Definition: SCR_AIConfigComponent.c:72
UpdateReticleShapeIndex
event void UpdateReticleShapeIndex(int index)
Called to update the Reticle shape.
ReticleNextColor
proto external void ReticleNextColor()
Set the next reticle color. This always works, but might not do anything if only one or no color is d...
UpdateReticleColor
event void UpdateReticleColor(vector inner, vector glow)
Called to update reticle color.
GetColorByIndex
proto external BaseCollimatorReticleColor GetColorByIndex(int index)
Get a color record by index.
BaseCollimatorSightsComponentClass
Definition: BaseCollimatorSightsComponent.c:12
SetReticleSize
BaseCollimatorSightsComponentClass SightsComponentClass SetReticleSize(float angularSize, float reticlePortion)
index
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
Definition: SCR_DestructionSynchronizationComponent.c:17
SetReticleColorByIndex
proto external bool SetReticleColorByIndex(int iIndex)
Set reticle color by index. Return true if successful.
BaseCollimatorReticleInfo
Definition: BaseCollimatorReticleInfo.c:12
GetCurrentReticleShape
proto external int GetCurrentReticleShape()
Get current reticle shape.
OnSightADSDeactivated
event void OnSightADSDeactivated()
Called every time the sight is deactivated.
Definition: SCR_2DSightsComponent.c:117
OnSightADSActivate
event void OnSightADSActivate()
GetReticleAngularSize
proto external float GetReticleAngularSize()
Get the default angular size of the reticle, in degrees.
GetReticleByIndex
proto external BaseCollimatorReticleInfo GetReticleByIndex(int index)
Get a reticle by index.
GetCurrentColor
proto external int GetCurrentColor()
Get current reticle color index.