用记事本打开游戏目录\data\scripts\prefabs\hambat.lua文件,将inst:AddComponent("weapon")替换为以下内容: if target.components.locomotor then target.components.locomotor:Stop() end if target.components.combat then ...
target.Transform:SetPosition((pt02.x-pt01.x)*0.5+pt02.x, 0, (pt02.z-pt01.z)*0.5+pt02.z) if target.components.combat then target.components.combat:SetTarget(GetPlayer ...