1[
ComponentEditorProps(
category:
"GameScripted/Editor", description:
"Entity transformation (moving and rotating). Works only with SCR_EditorBaseEntity!", icon:
"WBData/ComponentEditorProps/componentEditor.png")]
5 private ref array<ref SCR_BaseEditorEffect> m_EffectsTransforationStart;
8 private ref array<ref SCR_BaseEditorEffect> m_EffectsTransformationConfirm;
11 private ref array<ref SCR_BaseEditorEffect> m_EffectsTransformationCancel;
13 array<ref SCR_BaseEditorEffect> GetEffectsTransforationStart()
15 return m_EffectsTransforationStart;
17 array<ref SCR_BaseEditorEffect> GetEffectsTransformationConfirm()
19 return m_EffectsTransformationConfirm;
21 array<ref SCR_BaseEditorEffect> GetEffectsTransformationCancel()
23 return m_EffectsTransformationCancel;
69 if (!
IsOwner() || entities.IsEmpty())
return;
75 array<int> entityIds =
new array<int>;
88 if (entities.Find(parentBelowCurrentLayer) != -1 && parentBelowCurrentLayer.
IsReplicated(
id))
101 entityIds.Insert(
id);
103 if (entity != parentBelowCurrentLayer && !entity.
IsChildOf(parentBelowCurrentLayer))
109 if (entityIds.IsEmpty())
117 pivot = parentBelowCurrentLayer;
152 foreach (
int id: entityIds)
155 if (!entity)
continue;
169 spawnParams.Transform = transform;
178#ifdef PREVIEW_ENTITY_SHOW_REFERENCE
179 const ResourceName material =
"{D0126AF0E6A27141}Common/Materials/Colors/colorRed.emat";
187 if (simulatedDelay > 0 && !
Replication.IsRunning())
244 bool currentLayerChanged;
255 if (!
params)
return false;
267 if (!
params.Deserialize())
274 params.GetWorldTransform(mat);
285 if (slotEntity) slotEntity.SetOccupant(
m_EditedPivot.GetOwner());
290 entity.SetAuthor(playerID);
318 SCR_NotificationsComponent.SendLocal(
ENotification.EDITOR_TRANSFORMING_FAIL);
462#ifndef PREVIEW_ENTITY_SHOW_REFERENCE
531 set<SCR_EditableEntityComponent> selected =
new set<SCR_EditableEntityComponent>;
533 if (!selected.IsEmpty())
536 selected[0].GetOwner().GetWorldTransform(transform);
563 DiagMenu.RegisterBool(
SCR_DebugMenuID.DEBUGUI_EDITOR_TRANSFORM_START,
"",
"Start Transforming",
"Transforming");
564 DiagMenu.RegisterBool(
SCR_DebugMenuID.DEBUGUI_EDITOR_TRANSFORM_CONFIRM,
"",
"Confirm Transforming",
"Transforming");
565 DiagMenu.RegisterBool(
SCR_DebugMenuID.DEBUGUI_EDITOR_TRANSFORM_CANCEL,
"",
"Cancel Transforming",
"Transforming");
SCR_EAIThreatSectorFlags flags
ArmaReforgerScripted GetGame()
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
override int GetPlayerID()
ScriptInvokerBase< ScriptInvokerVoidMethod > ScriptInvokerVoid
proto external int SetEventMask(notnull IEntity owner, int mask)
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)
int GetEntities(out set< SCR_EditableEntityComponent > entities, bool includeChildren=false, bool evaluate=true)
void SCR_BaseEditorComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
static Managed GetInstance(typename type, bool showError=false, bool modeFirst=false)
EntityComponentPrefabData GetEditorComponentData()
void SendNotification(ENotification notificationID, int selfID=0, int targetID=0, vector position=vector.Zero)
SCR_EditorManagerEntity GetManager()
bool IsChildOf(SCR_EditableEntityComponent entity)
bool HasAccessInHierarchy(EEditableEntityAccessKey accessKey)
bool GetPos(out vector pos)
bool IsReplicated(out RplId replicationID=-1)
bool GetVisibleInHierarchy()
Network packet of variables for entity placing and transformation.
static SCR_EditorPreviewParams CreateParamsFromPreview(SCR_PreviewEntityEditorComponent previewManager, SCR_EditableEntityComponent parent=null, bool parentChanged=false)
SCR_BaseEditableEntityFilter GetFilter(EEditableEntityState state, bool showError=false)
static bool IsPositionWithinTerrainBounds(vector pos)
SCR_EditableEntityComponent GetCurrentLayer()
SCR_EditableEntityComponent GetParentBelowCurrentLayer(SCR_EditableEntityComponent entity)
proto external GenericEntity GetOwner()
Get owner entity.
SCR_FieldOfViewSettings Attribute
EEditorTransformVertical
Vertical transformation mode.
EEditorState
Unique editor state.
EntityEvent
Various entity events.
void RplRpc(RplChannel channel, RplRcver rcver, RplCondition condition=RplCondition.None, string customConditionName="")
RplChannel
Communication channel. Reliable is guaranteed to be delivered. Unreliable not.