一.PartyAI&AgentAI
Mission中Agent的AI行为为AgentAI,有常见的跟随,冲锋,坚守等AIBehavior.
大地图中Party的AI行为为PartyAI,有常见的附着,追击等AIBehavior.
二.AgentAI
<1.单个Agent的AI控制
通过header_mission_templates,py定制AI常量控制小兵位置,动作和朝向.可实现自定义阵型和攻击动作。
# Agent AI Simple Behaviors
aisb_hold = 0
aisb_go_to_pos = 1
aisb_mount = 2
aisb_dismount = 3
aisb_melee = 4
aisb_ranged = 5
aisb_ranged_horseback = 6
aisb_charge_horseback = 7
aisb_maneuver_horseback = 8
aisb_flock = 9
aisb_race = 10
aisb_patrol = 11
aisb_no_enemies = 12
aisb_horse_hold = 13
aisb_horse_run_away = 14
#设置攻击动作,四向攻击方向,挥舞动作
agent_set_attack_action = 1745 # (agent_set_attack_action, <agent_id>, <direction_value>, <action_value>),
#设置格挡动作
agent_set_defend_action = 1746 # (agent_set_defend_action, <agent_id>, <val