Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_BaseEditorEffect.c
Go to the documentation of this file.
1[BaseContainerProps(insertable: false)]
8{
15 static void Activate(array<ref SCR_BaseEditorEffect> effects, SCR_BaseEditorComponent editorComponent, vector position = vector.Zero, set<SCR_EditableEntityComponent> entities = null)
16 {
17 if (!effects) return;
18
19 SCR_EditorBaseEntity owner = SCR_EditorBaseEntity.Cast(editorComponent.GetOwner());
20 if (!owner) return;
21
22 SCR_EditorManagerEntity manager = owner.GetManager();
23 if (!manager) return;
24
25 //--- When attached to editor mode, ignore when the editor is opening or closing (ToDo: Parametrize?)
26 if (owner != manager && manager.IsInTransition()) return;
27
28 foreach (SCR_BaseEditorEffect effect: effects)
29 {
30 if (effect.EOnActivate(editorComponent, position, entities))
31 {
32 editorComponent.OnEffectBase(effect);
33 editorComponent.GetOnEffect().Invoke(effect);
34 }
35 }
36 }
37 protected bool EOnActivate(SCR_BaseEditorComponent editorComponent, vector position = vector.Zero, set<SCR_EditableEntityComponent> entities = null);
38};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void Activate()
vector position
void SCR_EditorManagerEntity(IEntitySource src, IEntity parent)
sealed void OnEffectBase(SCR_BaseEditorEffect effect)
bool EOnActivate(SCR_BaseEditorComponent editorComponent, vector position=vector.Zero, set< SCR_EditableEntityComponent > entities=null)