3 ref SCR_BTParam<AIWaypoint> m_RelatedWaypoint =
new SCR_BTParam<AIWaypoint>(
SCR_AIActionTask.WAYPOINT_PORT);
4 ref SCR_BTParam<vector> m_fDefendLocation =
new SCR_BTParam<vector>(
SCR_AIActionTask.DEFEND_LOCATION_PORT);
5 ref SCR_BTParam<float> m_fDefendAngularRange =
new SCR_BTParam<float>(
SCR_AIActionTask.ANGULAR_RANGE_PORT);
8 void InitParameters(AIWaypoint relatedWaypoint, vector defendLocation,
float defendAngularRange)
10 m_RelatedWaypoint.Init(
this, relatedWaypoint);
11 m_fDefendLocation.Init(
this, defendLocation);
16 void SCR_AIDefendBehavior(SCR_AIUtilityComponent utility,
SCR_AIActivityBase groupActivity, AIWaypoint relatedWaypoint, vector location,
float angularRange,
float priority = PRIORITY_BEHAVIOR_DEFEND,
float priorityLevel = PRIORITY_LEVEL_NORMAL)
18 m_sBehaviorTree =
"AI/BehaviorTrees/Chimera/Soldier/Defend.bt";
19 SetPriority(priority);
21 InitParameters(relatedWaypoint, location, angularRange);
25 override string GetActionDebugInfo()
27 return this.ToString() +
" defending " + m_RelatedWaypoint.ValueToString();