Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AIVehicleUsageComponent Class Reference
Inheritance diagram for SCR_AIVehicleUsageComponent:
ScriptComponent SCR_AIStaticArtilleryVehicleUsageComponent

Protected Member Functions

ScriptInvokerBase< SCR_AIOnVehicleDeletedGetOnDeleted ()
ScriptInvokerBase< SCR_AIOnVehicleDamageStateChangedGetOnDamageStateChanged ()
TurretCompartmentSlot GetTurretCompartmentSlot ()
PilotCompartmentSlot GetPilotCompartmentSlot ()
bool CanBePiloted ()
 AI can use the pilot compartments on this vehicle.
EAIVehicleType GetVehicleType ()
bool IsVehicleTypeValid ()
bool IsOccupiedByGroup (notnull SCR_AIGroup aiGroup)
bool IsOccupiedBy (IEntity entity)
EDamageState GetDamageState ()
void OnDamageStateChanged (EDamageState damageState)
void ~SCR_AIVehicleUsageComponent ()
override void OnPostInit (IEntity owner)
override void EOnInit (IEntity owner)

Static Protected Member Functions

static SCR_AIVehicleUsageComponent FindOnNearestParent (notnull IEntity ent, out IEntity componentOwner)
static void ErrorNoComponent (notnull IEntity entity)
static void ErrorIncorrectType (notnull IEntity entity)

Protected Attributes

EAIVehicleType m_eVehicleType
bool m_bCanBePiloted
ref ScriptInvokerBase< SCR_AIOnVehicleDeletedm_OnDeleted
ref ScriptInvokerBase< SCR_AIOnVehicleDamageStateChangedm_OnDamageStateChanged
TurretCompartmentSlot m_TurretSlot
PilotCompartmentSlot m_PilotSlot
SCR_DamageManagerComponent m_DamageManager

Detailed Description

This component should be attached to root entity of all vehicles and static turrets which are usable by AI. In case of a static tripod inside composition, this component should be on static tripod though, not on composition root. Other AI systems depend on this, so some AI functionality might not work with vehicles without this component.

Definition at line 29 of file SCR_AIVehicleUsageComponent.c.

Constructor & Destructor Documentation

◆ ~SCR_AIVehicleUsageComponent()

void SCR_AIVehicleUsageComponent::~SCR_AIVehicleUsageComponent ( )
inlineprotected

Definition at line 167 of file SCR_AIVehicleUsageComponent.c.

Member Function Documentation

◆ CanBePiloted()

bool SCR_AIVehicleUsageComponent::CanBePiloted ( )
inlineprotected

AI can use the pilot compartments on this vehicle.

Definition at line 73 of file SCR_AIVehicleUsageComponent.c.

◆ EOnInit()

override void SCR_AIVehicleUsageComponent::EOnInit ( IEntity owner)
inlineprotected

Definition at line 186 of file SCR_AIVehicleUsageComponent.c.

◆ ErrorIncorrectType()

void SCR_AIVehicleUsageComponent::ErrorIncorrectType ( notnull IEntity entity)
inlinestaticprotected

Definition at line 217 of file SCR_AIVehicleUsageComponent.c.

◆ ErrorNoComponent()

void SCR_AIVehicleUsageComponent::ErrorNoComponent ( notnull IEntity entity)
inlinestaticprotected

Definition at line 211 of file SCR_AIVehicleUsageComponent.c.

◆ FindOnNearestParent()

SCR_AIVehicleUsageComponent SCR_AIVehicleUsageComponent::FindOnNearestParent ( notnull IEntity ent,
out IEntity componentOwner )
inlinestaticprotected

Finds the component on nearest parent of that entity, including that entity. This should help with vehicles which have benches as slots, or static weapons which are children of compositions.

Definition at line 140 of file SCR_AIVehicleUsageComponent.c.

◆ GetDamageState()

EDamageState SCR_AIVehicleUsageComponent::GetDamageState ( )
inlineprotected

Definition at line 129 of file SCR_AIVehicleUsageComponent.c.

◆ GetOnDamageStateChanged()

ScriptInvokerBase< SCR_AIOnVehicleDamageStateChanged > SCR_AIVehicleUsageComponent::GetOnDamageStateChanged ( )
inlineprotected

Definition at line 53 of file SCR_AIVehicleUsageComponent.c.

◆ GetOnDeleted()

ScriptInvokerBase< SCR_AIOnVehicleDeleted > SCR_AIVehicleUsageComponent::GetOnDeleted ( )
inlineprotected

Definition at line 44 of file SCR_AIVehicleUsageComponent.c.

◆ GetPilotCompartmentSlot()

PilotCompartmentSlot SCR_AIVehicleUsageComponent::GetPilotCompartmentSlot ( )
inlineprotected

Definition at line 66 of file SCR_AIVehicleUsageComponent.c.

◆ GetTurretCompartmentSlot()

TurretCompartmentSlot SCR_AIVehicleUsageComponent::GetTurretCompartmentSlot ( )
inlineprotected

Definition at line 61 of file SCR_AIVehicleUsageComponent.c.

◆ GetVehicleType()

EAIVehicleType SCR_AIVehicleUsageComponent::GetVehicleType ( )
inlineprotected

Definition at line 79 of file SCR_AIVehicleUsageComponent.c.

◆ IsOccupiedBy()

bool SCR_AIVehicleUsageComponent::IsOccupiedBy ( IEntity entity)
inlineprotected

Checks whether the specified entity is occupying any compartment in this vehicle.

Parameters
[in]entityThe entity to check for occupancy.
Returns
Returns true if the entity is occupying a compartment; otherwise, false.

Definition at line 111 of file SCR_AIVehicleUsageComponent.c.

◆ IsOccupiedByGroup()

bool SCR_AIVehicleUsageComponent::IsOccupiedByGroup ( notnull SCR_AIGroup aiGroup)
inlineprotected

Determines whether the specified AI group is occupying this vehicle.

Parameters
[in]aiGroupThe AI group to check for occupancy.
Returns
Returns true if any member of the group is occupying the vehicle; otherwise, false.

Definition at line 94 of file SCR_AIVehicleUsageComponent.c.

◆ IsVehicleTypeValid()

bool SCR_AIVehicleUsageComponent::IsVehicleTypeValid ( )
inlineprotected

Definition at line 85 of file SCR_AIVehicleUsageComponent.c.

◆ OnDamageStateChanged()

void SCR_AIVehicleUsageComponent::OnDamageStateChanged ( EDamageState damageState)
inlineprotected

Definition at line 158 of file SCR_AIVehicleUsageComponent.c.

◆ OnPostInit()

override void SCR_AIVehicleUsageComponent::OnPostInit ( IEntity owner)
inlineprotected

Definition at line 177 of file SCR_AIVehicleUsageComponent.c.

Member Data Documentation

◆ m_bCanBePiloted

bool SCR_AIVehicleUsageComponent::m_bCanBePiloted
protected

Definition at line 35 of file SCR_AIVehicleUsageComponent.c.

◆ m_DamageManager

SCR_DamageManagerComponent SCR_AIVehicleUsageComponent::m_DamageManager
protected

Definition at line 41 of file SCR_AIVehicleUsageComponent.c.

◆ m_eVehicleType

EAIVehicleType SCR_AIVehicleUsageComponent::m_eVehicleType
protected

Definition at line 32 of file SCR_AIVehicleUsageComponent.c.

◆ m_OnDamageStateChanged

ref ScriptInvokerBase<SCR_AIOnVehicleDamageStateChanged> SCR_AIVehicleUsageComponent::m_OnDamageStateChanged
protected

Definition at line 38 of file SCR_AIVehicleUsageComponent.c.

◆ m_OnDeleted

ref ScriptInvokerBase<SCR_AIOnVehicleDeleted> SCR_AIVehicleUsageComponent::m_OnDeleted
protected

Definition at line 37 of file SCR_AIVehicleUsageComponent.c.

◆ m_PilotSlot

PilotCompartmentSlot SCR_AIVehicleUsageComponent::m_PilotSlot
protected

Definition at line 40 of file SCR_AIVehicleUsageComponent.c.

◆ m_TurretSlot

TurretCompartmentSlot SCR_AIVehicleUsageComponent::m_TurretSlot
protected

Definition at line 39 of file SCR_AIVehicleUsageComponent.c.


The documentation for this class was generated from the following file: