↑ NPC direction table
if player direction is 5
-----------------------------------------------------
if i >= 4 then // 5 >= 4 .. 5 - 4 = 1 -- "i" is get from player direction
i = i - 4;
else
i = i + 4;
end
Char.SetData(_MeIndex, %對像_方向%,i); // NPC will set the direction 1
-----------------------------------------------------
if you want to set the NPC direction , reference "NPC direction table"
附件: 您所在的用戶組無法下載或查看附件