PC Stable Documentation
 
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Loading...
Searching...
No Matches
ActionCarDoorsOutside Class Reference

Private Member Functions

void ActionCarDoorsOutside ()
 
override void CreateConditionComponents ()
 
override bool ActionCondition (PlayerBase player, ActionTarget target, ItemBase item)
 
override void OnStartServer (ActionData action_data)
 
override void OnEndServer (ActionData action_data)
 
protected void FillCommandUIDPerCrewIdx (int crewIdx0, int crewIdx1, int crewIdx2, int crewIdx3)
 
protected void FillCommandUIDPerCrewIdx (int evenCrewIdx0, int unevenCrewIdx1)
 

Private Attributes

protected int m_CommandUIDPerCrewIdx [4]
 
protected bool m_IsOpening = true
 

Constructor & Destructor Documentation

◆ ActionCarDoorsOutside()

Member Function Documentation

◆ ActionCondition()

override bool ActionCondition ( PlayerBase  player,
ActionTarget  target,
ItemBase  item 
)
inlineprivate

reach check from outside of car

player is outside of vehicle

player is looking at one of the doors, can't open if obstructed

if player is in car and cannot reach doors

is in reach, should open the door

References Class::CastTo(), UAMaxDistances::DEFAULT, CarScript::GetAnimSourceFromSelection(), CarScript::GetSeatIndexFromDoor(), ActionBase::IsInReach(), AnimatedActionBase::m_CommandUID, and m_IsOpening.

◆ CreateConditionComponents()

override void CreateConditionComponents ( )
inlineprivate

◆ FillCommandUIDPerCrewIdx() [1/2]

protected void FillCommandUIDPerCrewIdx ( int  crewIdx0,
int  crewIdx1,
int  crewIdx2,
int  crewIdx3 
)
inlineprivate

◆ FillCommandUIDPerCrewIdx() [2/2]

protected void FillCommandUIDPerCrewIdx ( int  evenCrewIdx0,
int  unevenCrewIdx1 
)
inlineprivate

◆ OnEndServer()

override void OnEndServer ( ActionData  action_data)
inlineprivate

◆ OnStartServer()

override void OnStartServer ( ActionData  action_data)
inlineprivate

Field Documentation

◆ m_CommandUIDPerCrewIdx

protected int m_CommandUIDPerCrewIdx[4]
private

◆ m_IsOpening


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