創建怪物

AI
伺服器端
可在 Mobile 端和 PC 端使用

創建AI怪物

聲明

func CreateMonster(out var target entity<Monster>, position Vector3, type MonsterType, teamSeq int, chaseEnemy bool, actionType ActionType, path entity<CustomPath>)
go

參數

輸入

名稱 類型 描述
位置 Vector3 建立位置
類型 AIType 人工智慧類型
隊伍 Int 所屬隊伍
自動索敵 Bool 是否自動索敵
行為類型 ActionType 攻擊模式
路徑 CustomPath 行進路徑

輸出

名稱 類型 描述
目標 AI 目標AI