Esempio n. 1
0
 public MyAgentBot(MyPlayer player, MyBotDefinition botDefinition)
 {
     this.m_player             = player;
     this.m_navigation         = new MyBotNavigation();
     this.m_actionCollection   = null;
     this.m_botMemory          = new MyBotMemory(this);
     this.m_botDefinition      = botDefinition as MyAgentDefinition;
     this.m_removeAfterDeath   = this.m_botDefinition.RemoveAfterDeath;
     this.m_respawnRequestSent = false;
     this.m_botRemoved         = false;
     this.m_player.Controller.ControlledEntityChanged += new Action <IMyControllableEntity, IMyControllableEntity>(this.Controller_ControlledEntityChanged);
     this.m_navigation.ChangeEntity(this.m_player.Controller.ControlledEntity);
     MyCestmirDebugInputComponent.PlacedAction += new Action <Vector3D, MyEntity>(this.DebugGoto);
 }
Esempio n. 2
0
 public virtual void InitActions(Sandbox.Game.AI.ActionCollection actionCollection)
 {
     this.m_actionCollection = actionCollection;
 }