Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AISmartActionSystem.c
Go to the documentation of this file.
2 {
3  protected void OnEntityTransformChanged(SCR_EditableEntityComponent editableEntity, vector prevTransfom[4])
4  {
5  AISmartActionComponent comp = AISmartActionComponent.Cast(editableEntity.GetOwner().FindComponent(AISmartActionComponent));
6  if (comp)
7  UpdateSmartAction(comp);
8  }
9 
10  override event protected void OnInit()
11  {
12  super.OnInit();
13 
15  if (!editableEntityCore)
16  return;
17 
18  editableEntityCore.Event_OnEntityTransformChangedServer.Insert(OnEntityTransformChanged);
19  }
20 
21  override event protected void OnCleanup()
22  {
23  super.OnCleanup();
24 
26  if (!editableEntityCore)
27  return;
28 
29  editableEntityCore.Event_OnEntityTransformChangedServer.Remove(OnEntityTransformChanged);
30  }
31 }
SCR_EditableEntityCore
Definition: SCR_EditableEntityCore.c:10
SCR_AISmartActionSystem
Definition: SCR_AISmartActionSystem.c:1
AISmartActionSystem
Definition: AISmartActionSystem.c:12
SCR_EditableEntityComponent
Definition: SCR_EditableEntityComponent.c:13
AISmartActionComponent
void AISmartActionComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition: AISmartActionComponent.c:19