这对某些人来说应该是微不足道的,但我不明白:s
if Message == "!kanebot" then
pos = {}
pObj = Get_GameObj(pID)
pos = Get_Position(pObj)
pos2:AssignX(pos2:GetX()+ 4*math.cos(Get_Facing(Get_GameObj(pID))*(math.pi / 180)))
pos2:AssignY(pos2:GetY()+ 4*math.cos(Get_Facing(Get_GameObj(pID))*(math.pi / 180)))
pos2:AssignZ(pos2:GetZ()+ .3)
reinf = Create_Object("Nod_Kane", pos)
Attach_Script_Once(reinf, "M01_Hunt_The_Player")
Attach_Script_Once(reinf, "M00_No_Falling_Damage_DME")
InputConsole("%s has bought a kanebot.", Get_Player_Name_By_ID(pID))
end
给出的错误是:尝试索引全局“pos2”(一个零值)
有任何想法吗?