Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 430 Bytes

File metadata and controls

22 lines (17 loc) · 430 Bytes

GetNPCList() -> ClientNPC[]

Ringkasan

  • GetNPCList() -> ClientNPC[]
  • Mengambil daftar semua NPC aktif di world.

Penjelasan

  • Gunakan untuk scanning posisi NPC, atau mendeteksi keberadaan tipe NPC tertentu.

Nilai kembali

  • Array ClientNPC

Contoh (Lua)

for _, npc in pairs(GetNPCList()) do
  LogToConsole('Found NPC id: ' .. npc.id)
end

Terkait