Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_VehicleSpawnProtectionComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_VehicleSpawnProtectionComponentClass
 

Functions

override void OnPostInit (IEntity owner)
 Called on PostInit when all components are added. More...
 
override void EOnInit (IEntity owner)
 
void ReleaseProtection ()
 
void SetProtectionTime (int protectionTime)
 
void SetVehicleOwner (int playerID)
 
void SetProtectOnlyDriverSeat (bool onlyDriverSeat)
 
void SetReasonText (string text)
 
int GetVehicleOwner ()
 
bool IsProtected (notnull IEntity playerEntering, notnull BaseCompartmentSlot compartmentSlot)
 
protected void OnPlayerDisconected (int playerID)
 
protected void OnPlayerDisconnected (int playerID)
 
LocalizedString GetReasonText (IEntity user)
 
void RemoveEventHandlers ()
 

Variables

SCR_VehicleSpawnProtectionComponentClass NO_OWNER = -1
 
private int m_iVehicleOwnerID = NO_OWNER
 
protected int m_iTimeOfProtection
 
bool m_bOnlyDriverSeat = true
 
private SCR_CharacterControllerComponent m_CharControlComp
 
protected string m_sReasonText
 

Function Documentation

◆ GetReasonText()

LocalizedString GetReasonText ( IEntity  user)
Parameters
[in]user
Returns

Definition at line 151 of file SCR_VehicleSpawnProtectionComponent.c.

◆ GetVehicleOwner()

int GetVehicleOwner ( )
Returns

Definition at line 103 of file SCR_VehicleSpawnProtectionComponent.c.

◆ IsProtected()

bool IsProtected ( notnull IEntity  playerEntering,
notnull BaseCompartmentSlot  compartmentSlot 
)
Parameters
[in]playerEntering
[in]compartmentSlot
Returns

Definition at line 113 of file SCR_VehicleSpawnProtectionComponent.c.

◆ OnPlayerDisconected()

protected void OnPlayerDisconected ( int  playerID)

Definition at line 136 of file SCR_VehicleSpawnProtectionComponent.c.

◆ OnPlayerDisconnected()

protected void OnPlayerDisconnected ( int  playerID)

Definition at line 142 of file SCR_VehicleSpawnProtectionComponent.c.

◆ ReleaseProtection()

void ReleaseProtection ( )

Definition at line 35 of file SCR_VehicleSpawnProtectionComponent.c.

◆ RemoveEventHandlers()

void RemoveEventHandlers ( )

Definition at line 161 of file SCR_VehicleSpawnProtectionComponent.c.

◆ SetProtectionTime()

void SetProtectionTime ( int  protectionTime)
Parameters
[in]protectionTime

Definition at line 46 of file SCR_VehicleSpawnProtectionComponent.c.

◆ SetProtectOnlyDriverSeat()

void SetProtectOnlyDriverSeat ( bool  onlyDriverSeat)
Parameters
[in]onlyDriverSeat

Definition at line 89 of file SCR_VehicleSpawnProtectionComponent.c.

◆ SetReasonText()

void SetReasonText ( string  text)
Parameters
[in]text

Definition at line 96 of file SCR_VehicleSpawnProtectionComponent.c.

◆ SetVehicleOwner()

void SetVehicleOwner ( int  playerID)
Parameters
[in]playerID

Definition at line 57 of file SCR_VehicleSpawnProtectionComponent.c.

Variable Documentation

◆ m_bOnlyDriverSeat

bool m_bOnlyDriverSeat = true

Definition at line 15 of file SCR_VehicleSpawnProtectionComponent.c.

◆ m_CharControlComp

private SCR_CharacterControllerComponent m_CharControlComp

Definition at line 16 of file SCR_VehicleSpawnProtectionComponent.c.

◆ m_iTimeOfProtection

protected int m_iTimeOfProtection

Definition at line 14 of file SCR_VehicleSpawnProtectionComponent.c.

◆ m_iVehicleOwnerID

private int m_iVehicleOwnerID = NO_OWNER

Definition at line 12 of file SCR_VehicleSpawnProtectionComponent.c.

◆ m_sReasonText

protected string m_sReasonText

Definition at line 18 of file SCR_VehicleSpawnProtectionComponent.c.

◆ NO_OWNER