25 [
RplRpc(RplChannel.Reliable, RplRcver.Broadcast)]
28 super.SetTransformBroadcast(transform);
33 EntitySpawnParams spawnParams =
new EntitySpawnParams();
35 spawnParams.TransformMode = ETransformMode.LOCAL;
39 EntityPrefabData decalPrefabData =
m_Decal.GetPrefabData();
41 DecalEntity newDecal = DecalEntity.Cast(
GetGame().SpawnEntityPrefab(Resource.Load(decalPrefab),
GetOwner().GetWorld(), spawnParams));
51 m_Decal = DecalEntity.Cast(owner.GetChildren());
59 Log(
"No child of type DecalEntity found!",
true, LogLevel.WARNING);
66 super.OnPostInit(owner);
67 SetEventMask(owner, EntityEvent.INIT);
68 owner.SetFlags(EntityFlags.NO_LINK | EntityFlags.NO_TREE);
69 owner.ClearFlags(EntityFlags.TRACEABLE);
75 super.OnDelete(owner);