◆ AddSupportStation()
Add support station to manager.
- Parameters
-
[in] | supportStation | Support Station to add |
◆ GetArrayOfSupportStationType()
int SCR_SupportStationManagerComponent.GetArrayOfSupportStationType |
( |
ESupportStationType | type, |
|
|
notnull out array< SCR_BaseSupportStationComponent > | supportStations ) |
|
protected |
◆ GetClosestValidSupportStation()
SCR_BaseSupportStationComponent SCR_SupportStationManagerComponent.GetClosestValidSupportStation |
( |
ESupportStationType | type, |
|
|
notnull IEntity | actionUser, |
|
|
notnull IEntity | actionOwner, |
|
|
SCR_BaseUseSupportStationAction | action, |
|
|
vector | actionPosition, |
|
|
out ESupportStationReasonInvalid | reasonInvalid, |
|
|
out int | supplyCost ) |
Returns closest valid support station of given type.
Will only get support stations of highest availible priority
- Parameters
-
[in] | type | Support Station Type |
[in] | actionUser | User that started the action |
[in] | actionOwner | entity on which the action manager was executed |
[in] | action | |
[in] | actionPosition | |
[out] | reasonInvalid | Reason why interaction was invalid (Will always take the highest reason why) |
[out] | supplyCost | cost of closest valid support station, -1 if supplies are not enabled or if no support station is valid |
- Returns
- Closest valid support station
◆ GetCombinedHitZonesStateForDamageSupportStation()
static void SCR_SupportStationManagerComponent.GetCombinedHitZonesStateForDamageSupportStation |
( |
notnull SCR_DamageManagerComponent | damageManagerComponent, |
|
|
notnull array< HitZone > | hitZones, |
|
|
float | maxHealPercentage, |
|
|
out float | roughHealPercentageStatus, |
|
|
out bool | allHitZonesMaxHealth = true ) |
|
static |
Used in DamageSystemSupport station to return a rough percentage of the health the given damageManagercompnent has.
Take note that this will never be a precise number and it will ignore the default hitZone until all other hitZone percentage is greater than it
- Parameters
-
[in] | damageManagerComponent | Damage Manager to check |
[in] | hitZones | |
[in] | maxHealPercentage | How much can be healed max 1 == 100% |
[out] | roughHealPercentageStatus | Rough percentage of health of the entity to display to the player the status |
[out] | allHitZonesMaxHealth | True if all hitZones are max health using maxHealPercentage |
◆ GetInstance()
◆ GetOnSupportStationExecutedSuccessfully()
ScriptInvokerBase< SupportStation_OnSupportStationExecuted > SCR_SupportStationManagerComponent.GetOnSupportStationExecutedSuccessfully |
( |
| ) |
|
Get script invoker when a Support station is executed There is always a chance that given component, entity or action is null depending if it was deleted.
Highly unlikely but possible
- Returns
- Script Invoker
◆ OnPostInit()
override void SCR_SupportStationManagerComponent.OnPostInit |
( |
IEntity | owner | ) |
|
◆ OnSupportStationExecutedSuccessfully()
Called by Support stations when they are successfully executed (Local and server)
- Parameters
-
[in] | supportStation | Support station that was executed |
[in] | type | Support Station Type |
[in] | actionUser | User that started the action |
[in] | actionOwner | entity on which the action manager was executed (This is in general the target of the support station action) |
[in] | action | Action used to execute the support station |
◆ RemoveSupportStation()
Remove support station from manager.
- Parameters
-
[in] | supportStation | Support Station to remove |
◆ m_mSupportStations
◆ m_OnSupportStationExecutedSuccessfully
ref ScriptInvokerBase<SupportStation_OnSupportStationExecuted> SCR_SupportStationManagerComponent.m_OnSupportStationExecutedSuccessfully = new ScriptInvokerBase<SupportStation_OnSupportStationExecuted>() |
|
protected |
◆ s_Instance
The documentation for this interface was generated from the following file:
- Game/Components/SupportStation/SCR_SupportStationManagerComponent.c