Arma Reforger Script API
|
Makes a vehicle able to carry Conflict resources. More...
Public Member Functions | |
int | GetLoadingPlayer (bool unloading=false) |
void | SetSupplyLoadingPlayer (int playerID) |
Setter for Loading players array. | |
void | DeleteSupplyLoadingPlayer (int playerID) |
void | SetSupplyUnloadingPlayer (int playerID) |
Setter for Unloading players array. | |
void | DeleteSupplyUnloadingPlayer (int playerID) |
Deletes from Unloading players array. | |
void | OnSuppliesChanged () |
int | GetSupplies () |
int | GetSuppliesMax () |
void | SetSuppliesMax (int suppliesMax) |
float | GetOperationalRadius () |
Get the load / unload radius. | |
void | SetIsPlayerInRange (bool status) |
bool | GetIsPlayerInRange () |
void | SetLastLoadedAt (SCR_CampaignMilitaryBaseComponent base) |
void | SetLastUnloadedAt (SCR_CampaignMilitaryBaseComponent base) |
bool | AwardXP () |
void | AddSupplies (int supplies, bool replicate=true) |
bool | GetIsStandaloneDepot () |
override void | EOnInit (IEntity owner) |
override void | OnPostInit (IEntity owner) |
void | SCR_CampaignSuppliesComponent (IEntityComponentSource src, IEntity ent, IEntity parent) |
void | ~SCR_CampaignSuppliesComponent () |
Static Public Member Functions | |
static SCR_CampaignSuppliesComponent | GetSuppliesComponent (notnull IEntity ent) |
Public Attributes | |
ref ScriptInvoker | m_OnSuppliesChanged = new ScriptInvoker() |
ref ScriptInvoker | m_OnSuppliesTruckDeleted = new ScriptInvoker() |
bool | m_bIsStandaloneDepot |
Protected Member Functions | |
void | OnPlayerKilled (notnull SCR_InstigatorContextData instigatorContextData) |
Protected Attributes | |
SCR_CampaignMilitaryBaseComponent | m_LastLoadedAt |
SCR_CampaignMilitaryBaseComponent | m_LastUnloadedAt |
SCR_CampaignMilitaryBaseComponent | m_LastXPAwardedAt |
bool | m_bAwardUnloadXP = true |
bool | m_bIsPlayerInRange |
ref array< int > | m_aLoadingPlayerIDs = {} |
ref array< int > | m_aUnloadingPlayerIDs = {} |
int | m_iSupplies |
int | m_iSuppliesMax |
float | m_fOperationalRadius |
Static Protected Attributes | |
static const float | SUPPLY_TRUCK_UNLOAD_RADIUS = 25 |
m: maximum distance from a supply depot a player can still (un)load their truck | |
Makes a vehicle able to carry Conflict resources.
void SCR_CampaignSuppliesComponent.SCR_CampaignSuppliesComponent | ( | IEntityComponentSource | src, |
IEntity | ent, | ||
IEntity | parent | ||
) |
[in] | src | |
[in] | ent | |
[in] | parent |
void SCR_CampaignSuppliesComponent.~SCR_CampaignSuppliesComponent | ( | ) |
void SCR_CampaignSuppliesComponent.AddSupplies | ( | int | supplies, |
bool | replicate = true |
||
) |
[in] | supplies | |
[in] | replicate |
bool SCR_CampaignSuppliesComponent.AwardXP | ( | ) |
void SCR_CampaignSuppliesComponent.DeleteSupplyLoadingPlayer | ( | int | playerID | ) |
[in] | playerID |
void SCR_CampaignSuppliesComponent.DeleteSupplyUnloadingPlayer | ( | int | playerID | ) |
Deletes from Unloading players array.
[in] | playerID |
override void SCR_CampaignSuppliesComponent.EOnInit | ( | IEntity | owner | ) |
bool SCR_CampaignSuppliesComponent.GetIsPlayerInRange | ( | ) |
bool SCR_CampaignSuppliesComponent.GetIsStandaloneDepot | ( | ) |
int SCR_CampaignSuppliesComponent.GetLoadingPlayer | ( | bool | unloading = false | ) |
[in] | unloading | true to verify in Unloading array, otherwise it will look in loading array |
float SCR_CampaignSuppliesComponent.GetOperationalRadius | ( | ) |
Get the load / unload radius.
If set custom use this. if it's set to zero, use default.
int SCR_CampaignSuppliesComponent.GetSupplies | ( | ) |
|
static |
[in] | ent |
int SCR_CampaignSuppliesComponent.GetSuppliesMax | ( | ) |
|
protected |
override void SCR_CampaignSuppliesComponent.OnPostInit | ( | IEntity | owner | ) |
void SCR_CampaignSuppliesComponent.OnSuppliesChanged | ( | ) |
void SCR_CampaignSuppliesComponent.SetIsPlayerInRange | ( | bool | status | ) |
[in] | status |
void SCR_CampaignSuppliesComponent.SetLastLoadedAt | ( | SCR_CampaignMilitaryBaseComponent | base | ) |
[in] | base |
void SCR_CampaignSuppliesComponent.SetLastUnloadedAt | ( | SCR_CampaignMilitaryBaseComponent | base | ) |
[in] | base |
void SCR_CampaignSuppliesComponent.SetSuppliesMax | ( | int | suppliesMax | ) |
[in] | suppliesMax |
void SCR_CampaignSuppliesComponent.SetSupplyLoadingPlayer | ( | int | playerID | ) |
Setter for Loading players array.
[in] | playerID |
void SCR_CampaignSuppliesComponent.SetSupplyUnloadingPlayer | ( | int | playerID | ) |
Setter for Unloading players array.
[in] | playerID |
|
protected |
|
protected |
|
protected |
|
protected |
bool SCR_CampaignSuppliesComponent.m_bIsStandaloneDepot |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
ref ScriptInvoker SCR_CampaignSuppliesComponent.m_OnSuppliesChanged = new ScriptInvoker() |
ref ScriptInvoker SCR_CampaignSuppliesComponent.m_OnSuppliesTruckDeleted = new ScriptInvoker() |
|
staticprotected |
m: maximum distance from a supply depot a player can still (un)load their truck