|
Arma Reforger Script API
|
Public Member Functions | |
| override void | EOnInit (IEntity owner) |
| void | AnimateTargets (IEntity pOwnerEntity, int playerID) |
| Animation proces of the target. | |
| void | ErectRandomTarget (array< SCR_FiringRangeTarget > targetArray) |
| Erect randomly selected target. | |
| void | FoldTarget (SCR_FiringRangeTarget selectedTarget) |
| Fold erected target back to default. | |
| void | BackToDefaultTarget () |
| Reset targets back to default behaviour, stop targets pops up loop. | |
| void | SetIndicator (IEntity indicator) |
| void | BackToDefaultTargetsFromLineArea () |
| Reset targets back to default behaviour, called from controller area trigger. | |
| void | CollectAllDistances (IEntity owner) |
| Make an array of all possible distances of targets under assigned firing range controller. | |
| array< int > | GetAllDistances () |
| Getter of all possible distances. | |
| int | GetFiringLineOwnerId () |
| Rerurns ID of player who owns the firing line. | |
| bool | IsLowestDistanceSet () |
| bool | IsHighestDistanceSet () |
| int | CalculateTargetDistance (bool increase) |
| Getter of next upper distance. | |
| void | UpdateNumberOfTargets (bool increase) |
| void | SetControllerCounter (EControlerSection indicator, int value) |
| Set the selected distance on controller display. | |
| float | GetSignalValue (int num) |
| Returns signal value for a given number. | |
| void | CountPopUpTargets () |
| Count how many targets was shot. | |
| void | ResetCountPopUpTargets () |
| Reset the counter. | |
| void | AddIndicator (vector localCoordOfHit, vector localVectorOfHit) |
| register indicator (decal) into the array and draw the hit | |
| IEntity | GetIndicator () |
| Return indicator entity. | |
| void | RemoveIndicators () |
| Remove all declas from indicator. | |
| int | GetTargetDistance () |
| int | GetTargetsInRound () |
| float | GetMaxScoreInRound () |
| Count and set the max score in the round on a specific line. | |
| void | SetControllerLight (ControllerLightType light, bool mode) |
| void | SetEmissivity (ParametricMaterialInstanceComponent light, bool on) |
| override bool | RplSave (ScriptBitWriter writer) |
| override bool | RplLoad (ScriptBitReader reader) |
| void | SCR_FiringRangeController (IEntitySource src, IEntity parent) |
| void | ~SCR_FiringRangeController () |
Static Public Attributes | |
| const static int | NO_TARGET_OWNER = -1 |
| const static int | RESET_COUNTER_TIME = 1500 |
| const static int | POWER_LIGHT_DELAY = 1000 |
| const static int | INDICATOR_MAX_VALUE = 9999 |
| const static int | DIGIT_ZERO = 0 |
| const static int | DIGIT_ONE = 315 |
| const static int | DIGIT_TWO = 280 |
| const static int | DIGIT_THREE = 245 |
| const static int | DIGIT_FOUR = 210 |
| const static int | DIGIT_FIVE = 175 |
| const static int | DIGIT_SIX = 140 |
| const static int | DIGIT_SEVEN = 105 |
| const static int | DIGIT_EIGHT = 70 |
| const static int | DIGIT_NINE = 35 |
| const static string | LIGHT_POWER = "light_001_power" |
| const static string | LIGHT_SEQUENCE = "light_002_sequence" |
| const static string | LIGHT_MALFUNCTION = "light_003_malfunction" |
| const static int | LIGHT_EMISSIVITY_ON = 1 |
| const static int | LIGHT_EMISSIVITY_OFF = 0 |
| const static bool | LIGHT_ON = true |
| const static bool | LIGHT_OFF = false |
| const static int | ERROR_LIGHT_DURATION = 1000 |
Protected Member Functions | |
| bool | CheckMasterOnlyMethod (string methodName) |
| bool | IsProxy () |
| Return if is proxy or not. | |
Protected Attributes | |
| int | m_iErectTargetTime |
| For how long target stays in erected position. | |
| void SCR_FiringRangeController.SCR_FiringRangeController | ( | IEntitySource | src, |
| IEntity | parent ) |
| void SCR_FiringRangeController.~SCR_FiringRangeController | ( | ) |
| void SCR_FiringRangeController.AddIndicator | ( | vector | localCoordOfHit, |
| vector | localVectorOfHit ) |
register indicator (decal) into the array and draw the hit
| void SCR_FiringRangeController.AnimateTargets | ( | IEntity | pOwnerEntity, |
| int | playerID ) |
Animation proces of the target.
| void SCR_FiringRangeController.BackToDefaultTarget | ( | ) |
Reset targets back to default behaviour, stop targets pops up loop.
| void SCR_FiringRangeController.BackToDefaultTargetsFromLineArea | ( | ) |
Reset targets back to default behaviour, called from controller area trigger.
| int SCR_FiringRangeController.CalculateTargetDistance | ( | bool | increase | ) |
Getter of next upper distance.
|
protected |
| void SCR_FiringRangeController.CollectAllDistances | ( | IEntity | owner | ) |
Make an array of all possible distances of targets under assigned firing range controller.
| void SCR_FiringRangeController.CountPopUpTargets | ( | ) |
Count how many targets was shot.
| override void SCR_FiringRangeController.EOnInit | ( | IEntity | owner | ) |
| void SCR_FiringRangeController.ErectRandomTarget | ( | array< SCR_FiringRangeTarget > | targetArray | ) |
Erect randomly selected target.
| void SCR_FiringRangeController.FoldTarget | ( | SCR_FiringRangeTarget | selectedTarget | ) |
Fold erected target back to default.
| array< int > SCR_FiringRangeController.GetAllDistances | ( | ) |
Getter of all possible distances.
| int SCR_FiringRangeController.GetFiringLineOwnerId | ( | ) |
Rerurns ID of player who owns the firing line.
| IEntity SCR_FiringRangeController.GetIndicator | ( | ) |
Return indicator entity.
| float SCR_FiringRangeController.GetMaxScoreInRound | ( | ) |
Count and set the max score in the round on a specific line.
| float SCR_FiringRangeController.GetSignalValue | ( | int | num | ) |
Returns signal value for a given number.
| int SCR_FiringRangeController.GetTargetDistance | ( | ) |
| int SCR_FiringRangeController.GetTargetsInRound | ( | ) |
| bool SCR_FiringRangeController.IsHighestDistanceSet | ( | ) |
| bool SCR_FiringRangeController.IsLowestDistanceSet | ( | ) |
|
protected |
Return if is proxy or not.
| void SCR_FiringRangeController.RemoveIndicators | ( | ) |
Remove all declas from indicator.
| void SCR_FiringRangeController.ResetCountPopUpTargets | ( | ) |
Reset the counter.
| override bool SCR_FiringRangeController.RplLoad | ( | ScriptBitReader | reader | ) |
| override bool SCR_FiringRangeController.RplSave | ( | ScriptBitWriter | writer | ) |
| void SCR_FiringRangeController.SetControllerCounter | ( | EControlerSection | indicator, |
| int | value ) |
Set the selected distance on controller display.
| void SCR_FiringRangeController.SetControllerLight | ( | ControllerLightType | light, |
| bool | mode ) |
| void SCR_FiringRangeController.SetEmissivity | ( | ParametricMaterialInstanceComponent | light, |
| bool | on ) |
| void SCR_FiringRangeController.SetIndicator | ( | IEntity | indicator | ) |
| void SCR_FiringRangeController.UpdateNumberOfTargets | ( | bool | increase | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
protected |
For how long target stays in erected position.
|
static |
|
static |
|
static |