|
Arma Reforger Script API
|
Public Member Functions | |
| void | UpdatePlayerSpawnHint (bool show, vector position=vector.Zero) |
| Serves for updating spawn hint on map witth he given position. | |
| void | SetMapCampaignUI (SCR_MapCampaignUI mapUi) |
| void | SetSpawnTime () |
| TimeContainer | GetSpawnTime () |
| bool | CanShowPlayerSpawn () |
| vector | GetPlayerSpawnPos () |
| Returns players position after spawning. | |
| bool | WasMapOpened () |
| void | SetMapOpened (bool wasOpened) |
| Sets that map was already opened by player. | |
| SCR_CampaignMilitaryBaseComponent | GetBaseWithPlayer () |
| void | SetIsPlayerInRadioRange (bool status) |
| void | BaseOutOfRangeHint (SCR_CampaignMilitaryBaseComponent base) |
| void | OnMapOpen (MapConfiguration config) |
| void | OnEntryPerformed (SCR_SelectionMenuEntry entry) |
| void | OnMapClose (MapConfiguration config) |
| void | OnRespawn () |
| Hints are displayed with a delay after respawn so player has time to find their bearings. | |
| void | ShowHint (EHint hintID, bool showImmediately=false, bool showMultipleTimes=false) |
| void | PauseHintQueue () |
| void | OnConsciousnessChanged (bool conscious) |
| Upon death, the unconscious state is no longer detectable, we need to cache it. | |
| bool | IsConscious () |
| void | OnPlayerKilled (notnull SCR_InstigatorContextData instigatorContextData) |
| void | OnBaseFactionChanged (notnull SCR_MilitaryBaseComponent base, Faction faction) |
| void | OnBaseEntered (notnull SCR_CampaignMilitaryBaseComponent base) |
| void | OnBaseLeft (notnull SCR_CampaignMilitaryBaseComponent base) |
| void | OnSeizingTimerChange (WorldTimestamp start, WorldTimestamp end) |
| void | MobileAssemblyFeedback (SCR_EMobileAssemblyStatus msgID, int playerID, int factionID) |
| void | PlayRadioMsg (SCR_ERadioMsg msg, int factionId, int baseCallsign, int callerCallsignCompany, int callerCallsignPlatoon, int callerCallsignSquad, int callerCallsignCharacter, int calledCallsignCompany, int calledCallsignPlatoon, int calledCallsignSquad, int calledCallsignCharacter, int param, float seed, float quality) |
| void | OnOwnershipChanged (bool changing, bool becameOwner) |
| void | OnPlayerSuppliesInteraction (EResourcePlayerInteractionType interactionType, PlayerController playerController, SCR_ResourceComponent resourceComponentFrom, SCR_ResourceComponent resourceComponentTo, EResourceType resourceType, float resourceValue) |
| override void | EOnInit (IEntity owner) |
| override void | OnPostInit (IEntity owner) |
| void | ~SCR_CampaignFeedbackComponent () |
Static Public Member Functions | |
| static SCR_CampaignFeedbackComponent | GetInstance () |
Static Public Attributes | |
| static const float | ICON_FLASH_DURATION = 20 |
| static const float | ICON_FLASH_PERIOD = 0.5 |
Protected Member Functions | |
| void | CheckPlayerInsideRadioRange () |
| void | RegisterTasksShown () |
| void | GroupLeaderHint () |
| void | LoneDriverHint () |
| void | TransportRequestHint () |
| void | OnRadialMenuAvailable () |
| void | OnBaseHovered (SCR_CampaignMilitaryBaseComponent base) |
| void | OnCommanderVolunteer (int playerId) |
| void | OnFactionCommanderChanged (SCR_Faction faction, int commanderPlayerId) |
| void | OnBaseClickedShowSupplyLimit (bool selected) |
| void | RefreshCurrentPopupMessage () |
| void | OnCheckEstablishmentArea () |
| void | OnTaskAssigneeAdded (SCR_Task task, SCR_TaskExecutor executor, int requesterID) |
| void | ProcessHintQueue () |
| bool | IsLocalPlayerAlive () |
| void | OnMatchSituationChanged () |
| void | OnXPChanged (int totalXP, SCR_EXPRewards rewardID, int XP, bool volunteer, bool profileUsed, int skillLevel) |
| void | OnPlayerJoinedGroup (SCR_AIGroup group, int playerID) |
| void | OnGroupMenuShow () |
| void | OnTaskSelected (SCR_Task task) |
| void | OnVehicleEnter (ChimeraCharacter playerCharacter, IEntity compartmentEntit) |
| Called when local player enters any vehicle compartment. | |
| void | RegisterVehicleListener () |
| Registers a callback for vehicle enter events for the local player. | |
| void | RegisterVehicleEnter () |
| void | UnregisterVehicleEnter () |
| void | OnTaskStateChanged (SCR_Task task, SCR_ETaskState newState) |
| void | OnRadialMenuOpen () |
| void | OnJournalOpened (bool newVisibility) |
| void | NightHint () |
| void | OnArsenalOpen () |
| void | OnItemSlotHover (SCR_InventorySlotUI slot) |
| void | TryRegisterInventoryHover () |
| void | CheckSquadCohesionHint () |
| void | ProcessEvents (bool activate) |
| void | ShowVolunteerHint (bool newVisibility) |
Protected Attributes | |
| ResourceName | m_sHintsConfig |
| int | m_iVehicleHintDelay |
| SCR_GameModeCampaign | m_Campaign |
| SCR_PlayerController | m_PlayerController |
| SCR_CampaignMilitaryBaseComponent | m_BaseWithPlayer |
| AudioHandle | m_PlayedRadio = AudioHandle.Invalid |
| vector | m_vFirstSpawnPosition |
| SCR_MapCampaignUI | m_MapCampaignUI |
| ref TimeContainer | m_SpawnTime |
| ref SCR_CampaignHintStorage | m_HintsConfig |
| ref array< int > | m_aShownHints = {} |
| ref array< int > | m_aHintQueue = {} |
| bool | m_bIsPlayerInRadioRange = true |
| bool | m_bCanShowSpawnPosition |
| bool | m_bWasMapOpened |
| bool | m_bIsConscious |
| bool | m_bWasNight |
| bool | m_bCohesionHintWasShown |
| float | m_fNextAllowedHintTimestamp |
| WorldTimestamp | m_fBaseWithPlayerCaptureStart |
| WorldTimestamp | m_fBaseWithPlayerCaptureEnd |
Static Protected Attributes | |
| static const int | AFTER_RESPAWN_HINT_DELAY_MS = 16500 |
| static const int | DELAY_BETWEEN_HINTS_MS = 1000 |
| static const int | FEATURE_HINT_DELAY = 120000 |
| static const int | NIGHT_HINT_DELAY_MS = 10000 |
| static const int | COHESION_HINT_DELAY_MS = 20000 |
| void SCR_CampaignFeedbackComponent.~SCR_CampaignFeedbackComponent | ( | ) |
| void SCR_CampaignFeedbackComponent.BaseOutOfRangeHint | ( | SCR_CampaignMilitaryBaseComponent | base | ) |
| [in] | base |
| bool SCR_CampaignFeedbackComponent.CanShowPlayerSpawn | ( | ) |
|
protected |
|
protected |
| override void SCR_CampaignFeedbackComponent.EOnInit | ( | IEntity | owner | ) |
| SCR_CampaignMilitaryBaseComponent SCR_CampaignFeedbackComponent.GetBaseWithPlayer | ( | ) |
|
static |
| vector SCR_CampaignFeedbackComponent.GetPlayerSpawnPos | ( | ) |
Returns players position after spawning.
| TimeContainer SCR_CampaignFeedbackComponent.GetSpawnTime | ( | ) |
|
protected |
| bool SCR_CampaignFeedbackComponent.IsConscious | ( | ) |
|
protected |
|
protected |
| void SCR_CampaignFeedbackComponent.MobileAssemblyFeedback | ( | SCR_EMobileAssemblyStatus | msgID, |
| int | playerID, | ||
| int | factionID ) |
| [in] | msgID | |
| [in] | playerID | |
| [in] | factionID |
|
protected |
|
protected |
|
protected |
| void SCR_CampaignFeedbackComponent.OnBaseEntered | ( | notnull SCR_CampaignMilitaryBaseComponent | base | ) |
| [in] | base |
| void SCR_CampaignFeedbackComponent.OnBaseFactionChanged | ( | notnull SCR_MilitaryBaseComponent | base, |
| Faction | faction ) |
| [in] | base | |
| [in] | faction |
|
protected |
| void SCR_CampaignFeedbackComponent.OnBaseLeft | ( | notnull SCR_CampaignMilitaryBaseComponent | base | ) |
| [in] | base |
|
protected |
|
protected |
| void SCR_CampaignFeedbackComponent.OnConsciousnessChanged | ( | bool | conscious | ) |
Upon death, the unconscious state is no longer detectable, we need to cache it.
| [in] | conscious |
| void SCR_CampaignFeedbackComponent.OnEntryPerformed | ( | SCR_SelectionMenuEntry | entry | ) |
|
protected |
|
protected |
|
protected |
|
protected |
| void SCR_CampaignFeedbackComponent.OnMapClose | ( | MapConfiguration | config | ) |
| void SCR_CampaignFeedbackComponent.OnMapOpen | ( | MapConfiguration | config | ) |
| [in] | config |
|
protected |
| void SCR_CampaignFeedbackComponent.OnOwnershipChanged | ( | bool | changing, |
| bool | becameOwner ) |
| [in] | changing | |
| [in] | becameOwner |
|
protected |
| void SCR_CampaignFeedbackComponent.OnPlayerKilled | ( | notnull SCR_InstigatorContextData | instigatorContextData | ) |
| [in] | playerId | |
| [in] | playerEntity | |
| [in] | killerEntity | |
| [in] | killer |
| void SCR_CampaignFeedbackComponent.OnPlayerSuppliesInteraction | ( | EResourcePlayerInteractionType | interactionType, |
| PlayerController | playerController, | ||
| SCR_ResourceComponent | resourceComponentFrom, | ||
| SCR_ResourceComponent | resourceComponentTo, | ||
| EResourceType | resourceType, | ||
| float | resourceValue ) |
| [in] | interactionType | |
| [in] | playerController | |
| [in] | resourceComponentFrom | |
| [in] | resourceComponentTo | |
| [in] | resourceType | |
| [in] | resourceValue |
| override void SCR_CampaignFeedbackComponent.OnPostInit | ( | IEntity | owner | ) |
|
protected |
|
protected |
| void SCR_CampaignFeedbackComponent.OnRespawn | ( | ) |
Hints are displayed with a delay after respawn so player has time to find their bearings.
| void SCR_CampaignFeedbackComponent.OnSeizingTimerChange | ( | WorldTimestamp | start, |
| WorldTimestamp | end ) |
| [in] | start | |
| [in] | end |
|
protected |
|
protected |
|
protected |
|
protected |
Called when local player enters any vehicle compartment.
| [in] | playerCharacter | The player character entity |
| [in] | compartmentEntit | The compartment entity entered |
|
protected |
| void SCR_CampaignFeedbackComponent.PauseHintQueue | ( | ) |
| void SCR_CampaignFeedbackComponent.PlayRadioMsg | ( | SCR_ERadioMsg | msg, |
| int | factionId, | ||
| int | baseCallsign, | ||
| int | callerCallsignCompany, | ||
| int | callerCallsignPlatoon, | ||
| int | callerCallsignSquad, | ||
| int | callerCallsignCharacter, | ||
| int | calledCallsignCompany, | ||
| int | calledCallsignPlatoon, | ||
| int | calledCallsignSquad, | ||
| int | calledCallsignCharacter, | ||
| int | param, | ||
| float | seed, | ||
| float | quality ) |
| [in] | msg | |
| [in] | factionId | |
| [in] | baseCallsign | |
| [in] | callerCallsignCompany | |
| [in] | callerCallsignPlatoon | |
| [in] | callerCallsignSquad | |
| [in] | callerCallsignCharacter | |
| [in] | calledCallsignCompany | |
| [in] | calledCallsignPlatoon | |
| [in] | calledCallsignSquad | |
| [in] | calledCallsignCharacter | |
| [in] | param | |
| [in] | seed | |
| [in] | quality |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Registers a callback for vehicle enter events for the local player.
| void SCR_CampaignFeedbackComponent.SetIsPlayerInRadioRange | ( | bool | status | ) |
| [in] | status |
| void SCR_CampaignFeedbackComponent.SetMapCampaignUI | ( | SCR_MapCampaignUI | mapUi | ) |
| [in] | mapUi |
| void SCR_CampaignFeedbackComponent.SetMapOpened | ( | bool | wasOpened | ) |
Sets that map was already opened by player.
| [in] | wasOpened |
| void SCR_CampaignFeedbackComponent.SetSpawnTime | ( | ) |
| void SCR_CampaignFeedbackComponent.ShowHint | ( | EHint | hintID, |
| bool | showImmediately = false, | ||
| bool | showMultipleTimes = false ) |
| [in] | hintID | |
| [in] | showImmediately | |
| [in] | showMultipleTimes |
|
protected |
|
protected |
|
protected |
|
protected |
| void SCR_CampaignFeedbackComponent.UpdatePlayerSpawnHint | ( | bool | show, |
| vector | position = vector::Zero ) |
Serves for updating spawn hint on map witth he given position.
| [in] | enable | |
| [in] | position |
| bool SCR_CampaignFeedbackComponent.WasMapOpened | ( | ) |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |