Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_DestructionManagerComponent.c
Go to the documentation of this file.
1
#define ENABLE_BASE_DESTRUCTION
2
[
EntityEditorProps
(
category
:
"GameScripted/Destruction"
, description:
"Enables destruction."
)]
3
class
SCR_DestructionManagerComponentClass
:
ScriptComponentClass
4
{
5
}
6
7
class
SCR_DestructionManagerComponent :
ScriptComponent
8
{
9
#ifdef ENABLE_BASE_DESTRUCTION
10
//------------------------------------------------------------------------------------------------
11
override
void
OnPostInit
(
IEntity
owner)
12
{
13
SetEventMask
(owner,
EntityEvent
.INIT);
14
}
15
16
//------------------------------------------------------------------------------------------------
17
override
void
EOnInit
(
IEntity
owner)
18
{
19
RplComponent rplComponent = RplComponent.Cast(owner.
FindComponent
(RplComponent));
20
if
(!rplComponent || rplComponent.IsProxy())
21
return
;
22
23
float
delay = 10000;
24
25
if
(
RplSession
.Mode() !=
RplMode
.Dedicated)
26
delay = 500;
27
28
GetGame
().GetCallqueue().CallLater(
SCR_MPDestructionManager
.
InitializeDestructionManager
, delay,
false
);
29
}
30
#endif
31
}
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
RplMode
RplMode
Mode of replication.
Definition
RplMode.c:9
EntityEditorProps
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Definition
SCR_CompassComponent.c:10
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
GenericComponent::SetEventMask
proto external int SetEventMask(notnull IEntity owner, int mask)
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
RplSession
Definition
RplSession.c:8
SCR_DestructionManagerComponentClass
Definition
SCR_DestructionManagerComponent.c:4
SCR_MPDestructionManager
Definition
SCR_MPDestructionManager.c:104
SCR_MPDestructionManager::InitializeDestructionManager
static notnull SCR_MPDestructionManager InitializeDestructionManager()
Definition
SCR_MPDestructionManager.c:131
ScriptComponentClass
Definition
ScriptComponentClass.c:8
ScriptComponent
Definition
ScriptComponent.c:24
ScriptComponent::EOnInit
void EOnInit(IEntity owner)
EntityEvent
EntityEvent
Various entity events.
Definition
EntityEvent.c:14
OnPostInit
@ OnPostInit
Definition
SndComponentCallbacks.c:15
scripts
Game
Destruction
SCR_DestructionManagerComponent.c
Generated by
1.17.0