3 protected static const string PICKUP_POSITION_PORT =
"PickupPosition";
4 static const string MAGAZINE_WELL_TYPE_PORT =
"MagazineWellType";
6 ref SCR_BTParam<vector> m_vPickupPosition =
new SCR_BTParam<vector>(PICKUP_POSITION_PORT);
7 ref SCR_BTParam<typename> m_MagazineWellType =
new SCR_BTParam<typename>(MAGAZINE_WELL_TYPE_PORT);
12 void InitProperties(vector pickupPosition,
typename magazineWellType)
20 vector pickupPosition,
typename magazineWellType,
float priorityLevel = PRIORITY_LEVEL_NORMAL)
24 m_sBehaviorTree =
"{8522FD17F6E08C47}AI/BehaviorTrees/Chimera/Soldier/PickupInventoryItems.bt";
26 SetIsUniqueInActionQueue(
true);
27 InitProperties(pickupPosition, magazineWellType);
33 m_MoveBehavior =
new SCR_AIMoveIndividuallyBehavior(utility, groupActivity, pickupPosition, priority: movePriority, priorityLevel: priorityLevel, radius: 0.3);
34 utility.AddAction(m_MoveBehavior);
38 override void OnActionCompleted()
40 super.OnActionCompleted();
42 m_MoveBehavior.Complete();
46 override void OnActionFailed()
48 super.OnActionFailed();
50 m_MoveBehavior.Fail();