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_DestructionSynchronizationComponent.c
Go to the documentation of this file.
1
#define ENABLE_BASE_DESTRUCTION
2
3
[
EntityEditorProps
(
category
:
"GameScripted/Destruction"
, description:
""
)]
4
class
SCR_DestructionSynchronizationComponentClass
:
ScriptComponentClass
5
{
6
}
7
8
class
SCR_DestructionSynchronizationComponent
:
ScriptComponent
9
{
10
#ifdef ENABLE_BASE_DESTRUCTION
11
//------------------------------------------------------------------------------------------------
15
[
RplRpc
(
RplChannel
.Reliable,
RplRcver
.Server)]
16
void
RPC_RequestDestructibleState(
RplId
rplId,
int
index
)
17
{
18
SCR_MPDestructionManager
destructionManager =
SCR_MPDestructionManager
.
GetInstance
();
19
if
(!destructionManager)
20
return
;
21
22
SCR_DestructionDamageManagerComponent
destructible
= destructionManager.
FindDynamicallySpawnedDestructibleByIndex
(rplId,
index
);
23
if
(!
destructible
)
24
return
;
25
26
destructible
.ReplicateDestructibleState();
27
}
28
29
//------------------------------------------------------------------------------------------------
33
void
RequestDestructibleState
(
RplId
rplId,
int
index
)
34
{
35
Rpc
(RPC_RequestDestructibleState, rplId,
index
);
36
}
37
38
//------------------------------------------------------------------------------------------------
39
override
void
OnPostInit
(
IEntity
owner)
40
{
41
}
42
43
//------------------------------------------------------------------------------------------------
44
// constructor
48
void
SCR_DestructionSynchronizationComponent
(
IEntityComponentSource
src,
IEntity
ent,
IEntity
parent)
49
{
50
}
51
#endif
52
}
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
index
SCR_DestructionSynchronizationComponentClass ScriptComponentClass int index
Definition
SCR_DestructionSynchronizationComponent.c:17
RequestDestructibleState
void RequestDestructibleState(RplId rplId, int index)
Definition
SCR_DestructionSynchronizationComponent.c:33
SCR_DestructionSynchronizationComponent
void SCR_DestructionSynchronizationComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_DestructionSynchronizationComponent.c:48
destructible
SCR_DestructionDamageManagerComponent destructible
Definition
SCR_DestructionSynchronizationComponent.c:22
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
GenericComponent::Rpc
void Rpc(func method, void p0=NULL, void p1=NULL, void p2=NULL, void p3=NULL, void p4=NULL, void p5=NULL, void p6=NULL, void p7=NULL)
IEntityComponentSource
Definition
IEntityComponentSource.c:13
IEntity
Definition
IEntity.c:13
RplId
Replication item identifier.
Definition
RplId.c:14
SCR_DestructionSynchronizationComponentClass
Definition
SCR_DestructionSynchronizationComponent.c:5
SCR_MPDestructionManager
Definition
SCR_MPDestructionManager.c:104
SCR_MPDestructionManager::FindDynamicallySpawnedDestructibleByIndex
SCR_DestructionDamageManagerComponent FindDynamicallySpawnedDestructibleByIndex(RplId rplId, int index)
Definition
SCR_MPDestructionManager.c:311
SCR_MPDestructionManager::GetInstance
static SCR_MPDestructionManager GetInstance()
Returns the instance of the destruction manager.
Definition
SCR_MPDestructionManager.c:151
ScriptComponentClass
Definition
ScriptComponentClass.c:8
ScriptComponent
Definition
ScriptComponent.c:24
RplRpc
void RplRpc(RplChannel channel, RplRcver rcver, RplCondition condition=RplCondition.None, string customConditionName="")
Definition
EnNetwork.c:95
RplRcver
RplRcver
Definition
RplRcver.c:59
RplChannel
RplChannel
Communication channel. Reliable is guaranteed to be delivered. Unreliable not.
Definition
RplChannel.c:14
OnPostInit
@ OnPostInit
Definition
SndComponentCallbacks.c:15
scripts
Game
Destruction
SCR_DestructionSynchronizationComponent.c
Generated by
1.17.0