Arma Reforger Script API
|
Public Member Functions | |
void | ClearPlayerScore (int playerID) |
void | CountPlayerScore (int scoringPlayer, int scorePoints) |
void | SetPlayerScoreMax (int playerID, float maxScore) |
void | UpdateScoreboardData () |
int | GetHighScoreInfo (array< SCR_PlayerScoreInfoFiringRange > infos) |
bool | ScoreChanged () |
bool | ScoreMaxChanged () |
bool | NameChanged () |
bool | PlayerCountChangedInArea () |
override void | EOnFrame (IEntity owner, float timeSlice) |
override void | OnActivate (IEntity ent) |
callback - activation - occurs when and entity which fulfills the filter definitions enters the Trigger | |
override void | OnDeactivate (IEntity ent) |
callback - deactivation - occurs when and entity which was activated (OnActivate) leaves the Trigger | |
bool | IsProxy () |
Return if is proxy or not. | |
void | GenerateRows () |
override void | EOnInit (IEntity owner) |
void | RegisterFiringRangeController (IEntity firingLineController) |
Register all firing range controllers into one array This is happening at the beginning of scenario. | |
void | RemoveAssignedPlayerFromFireline (int playerID) |
Remove assigned firing line and targets from player if he is killed or if he disconects. | |
int | GetPlayerID (IEntity ent) |
Get player ID. | |
void | RegisterPlayerInArea (int playerID) |
Add the player into the array of players in firing range area. | |
void | RemovePlayerFromArea (int playerID) |
Remove the player from the array of players in firing range area. | |
bool | IsPlayerInFiringRangeArea (int playerID) |
Return true if the ID is in the list of players in firing range area. If not, returns false. | |
SCR_FiringRangeManager | GetInstance () |
Get manager instance. | |
Widget | GetRootWidget () |
Get m_wRoot widget. | |
string | GetPlayerName (IEntity ent) |
Get player name. | |
void | SpawnCommunicationPrefab (int playerID) |
void | AddIndicator (vector localCoordOfHit, vector localVectorOfHit, IEntity pOwnerEntity) |
void | RemoveIndicators (RplId controllerReplicationId) |
void | ControllerLight (notnull IEntity firingRangeController, ControllerLightType light, bool mode) |
void | SetControllerCounter (notnull IEntity firingRangeController, EControlerSection type, int value) |
void | RpcAsk_AddIndicator (RplId controllerReplicationId, vector localCoordOfHit, vector localVectorOfHit) |
void | SCR_FiringRangeManager (IEntitySource src, IEntity parent) |
void | ~SCR_FiringRangeManager () |
![]() | |
bool | ScriptedEntityFilterForQuery (IEntity ent) |
Override this method in inherited class to define a new filter. This base filter will not be used unless overridden! | |
![]() | |
ScriptInvoker | GetOnQueryFinished () |
proto external bool | QueryEntityInside (notnull IEntity ent) |
proto external void | QueryEntitiesInside () |
proto external bool | DefaultEntityFilterForQuery (IEntity ent) |
proto external int | GetEntitiesInside (out notnull array< IEntity > outEntities) |
Get the entities inside the triggers. | |
proto external void | SetSphereRadius (float radius) |
proto external float | GetSphereRadius () |
proto external void | SetUpdateRate (float updateRate) |
proto external float | GetUpdateRate () |
proto external void | EnablePeriodicQueries (bool enable) |
proto external bool | IsPeriodicQueriesEnabled () |
proto external void | AddFilterName (string name) |
Add a name to the filter. | |
proto external bool | RemoveFilterName (string name) |
Remove a name from the filter. | |
proto external void | AddClassType (TypeName classType) |
Add a class type to the filter. | |
proto external bool | RemoveClassType (TypeName classType) |
Remove a class type from the filter. | |
proto external void | AddPrefabFilter (PrefabFilter prefabFilter) |
Add a prefab filter to the filters. | |
proto external bool | RemovePrefabFilter (PrefabFilter prefabFilter) |
Remove a prefab filter from the filters. | |
proto external EQueryEntitiesFlags | GetTraceMask () |
Get flag(s) from the traces done by the the trigger. | |
proto external void | SetTraceMask (EQueryEntitiesFlags flags) |
Sets trace mask. | |
proto external void | ClearTraceMask (EQueryEntitiesFlags flags) |
Clears trace mask. | |
Static Public Member Functions | |
static SCR_FiringRangeManager | GetMainManagerInstance () |
Get MAIN manager instance. | |
Protected Member Functions | |
void | RpcAsk_RemoveIndicators (RplId controllerReplicationId) |
void | RpcAsk_ClearWidgets (int playerID) |
void | RpcAsk_ControllerLight (RplId controllerReplicationId, ControllerLightType light, bool mode) |
void | RpcAsk_SetControllerCounter (RplId controllerReplicationId, EControlerSection type, int value) |
bool | CheckMasterOnlyMethod (string methodName) |
![]() | |
void | OnInit (IEntity owner) |
void | OnFrame (IEntity owner, float timeSlice) |
![]() | |
void | OnQueryFinished (bool bIsEmpty) |
callback - query finished - occurs when the current query finished being processd and has updated results | |
Protected Attributes | |
Widget | m_wRoot |
SCR_FiringRangeManager | m_FiringRangeManagerInstance |
![]() | |
ref ScriptInvoker | Event_OnQueryFinished = new ScriptInvoker() |
Static Protected Attributes | |
static SCR_FiringRangeManager | s_FiringRangeManagerMain |
void SCR_FiringRangeManager.SCR_FiringRangeManager | ( | IEntitySource | src, |
IEntity | parent ) |
void SCR_FiringRangeManager.~SCR_FiringRangeManager | ( | ) |
void SCR_FiringRangeManager.AddIndicator | ( | vector | localCoordOfHit, |
vector | localVectorOfHit, | ||
IEntity | pOwnerEntity ) |
|
protected |
void SCR_FiringRangeManager.ClearPlayerScore | ( | int | playerID | ) |
void SCR_FiringRangeManager.ControllerLight | ( | notnull IEntity | firingRangeController, |
ControllerLightType | light, | ||
bool | mode ) |
void SCR_FiringRangeManager.CountPlayerScore | ( | int | scoringPlayer, |
int | scorePoints ) |
override void SCR_FiringRangeManager.EOnFrame | ( | IEntity | owner, |
float | timeSlice ) |
override void SCR_FiringRangeManager.EOnInit | ( | IEntity | owner | ) |
void SCR_FiringRangeManager.GenerateRows | ( | ) |
int SCR_FiringRangeManager.GetHighScoreInfo | ( | array< SCR_PlayerScoreInfoFiringRange > | infos | ) |
SCR_FiringRangeManager SCR_FiringRangeManager.GetInstance | ( | ) |
Get manager instance.
|
static |
Get MAIN manager instance.
int SCR_FiringRangeManager.GetPlayerID | ( | IEntity | ent | ) |
Get player ID.
string SCR_FiringRangeManager.GetPlayerName | ( | IEntity | ent | ) |
Get player name.
Widget SCR_FiringRangeManager.GetRootWidget | ( | ) |
Get m_wRoot widget.
bool SCR_FiringRangeManager.IsPlayerInFiringRangeArea | ( | int | playerID | ) |
Return true if the ID is in the list of players in firing range area. If not, returns false.
bool SCR_FiringRangeManager.IsProxy | ( | ) |
Return if is proxy or not.
bool SCR_FiringRangeManager.NameChanged | ( | ) |
override void SCR_FiringRangeManager.OnActivate | ( | IEntity | ent | ) |
callback - activation - occurs when and entity which fulfills the filter definitions enters the Trigger
Implements BaseGameTriggerEntity.
override void SCR_FiringRangeManager.OnDeactivate | ( | IEntity | ent | ) |
callback - deactivation - occurs when and entity which was activated (OnActivate) leaves the Trigger
Implements BaseGameTriggerEntity.
bool SCR_FiringRangeManager.PlayerCountChangedInArea | ( | ) |
void SCR_FiringRangeManager.RegisterFiringRangeController | ( | IEntity | firingLineController | ) |
Register all firing range controllers into one array This is happening at the beginning of scenario.
So we are able to remove assigned fireline from player in moment he disconects or is killed.
void SCR_FiringRangeManager.RegisterPlayerInArea | ( | int | playerID | ) |
Add the player into the array of players in firing range area.
void SCR_FiringRangeManager.RemoveAssignedPlayerFromFireline | ( | int | playerID | ) |
Remove assigned firing line and targets from player if he is killed or if he disconects.
void SCR_FiringRangeManager.RemoveIndicators | ( | RplId | controllerReplicationId | ) |
void SCR_FiringRangeManager.RemovePlayerFromArea | ( | int | playerID | ) |
Remove the player from the array of players in firing range area.
void SCR_FiringRangeManager.RpcAsk_AddIndicator | ( | RplId | controllerReplicationId, |
vector | localCoordOfHit, | ||
vector | localVectorOfHit ) |
|
protected |
|
protected |
|
protected |
|
protected |
bool SCR_FiringRangeManager.ScoreChanged | ( | ) |
bool SCR_FiringRangeManager.ScoreMaxChanged | ( | ) |
void SCR_FiringRangeManager.SetControllerCounter | ( | notnull IEntity | firingRangeController, |
EControlerSection | type, | ||
int | value ) |
void SCR_FiringRangeManager.SetPlayerScoreMax | ( | int | playerID, |
float | maxScore ) |
void SCR_FiringRangeManager.SpawnCommunicationPrefab | ( | int | playerID | ) |
void SCR_FiringRangeManager.UpdateScoreboardData | ( | ) |
|
protected |
|
protected |
|
staticprotected |