> For the complete documentation index, see [llms.txt](https://fehdead.gitbook.io/npc-kit/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fehdead.gitbook.io/npc-kit/examples/object.md).

# An Object

**A Goddess's Statue stands in the bazaar. It has no name and no talk: the player walks around it.**

This example takes place on map id 290, Rabanastre / Muthru Bazaar.

Download: [object.lua](https://github.com/FelipeJulio/NPC-Kit/tree/main/examples/object.lua)

```lua
local ok, npc = pcall(require, "scripts.NPCKit.Helper")
if not ok then
    print("Couldn't install, NPC Kit is missing.")
    return
end

local function placeObject(model, x, y, z, heading)
    npc.setautorelax(1);
    npc.usecharhit(0);
    npc.bindp2_d4(model, 1, 0);
    npc.stdmotionread(16);
    npc.stdmotionreadsync();
    npc.stdmotionplay_2c2(0x01000000, 0);
    npc.setoverheadicontype(0);
    npc.usemapid(0);
    npc.usecharhit(1);
    npc.setweight(-1);
    npc.set_ignore_hitgroup(1);
    npc.motionloop(1);
    npc.setpos2(x, y, z);
    npc.dir(heading);
    npc.fetchambient();
    npc.bonecalcforce(-1);
    npc.clearhidecomplete();
    npc.show();
    npc.showshadow();
end

local function myMod()
    npc.add {
        id = "npckit_0016",
        map = 290,

        init = function()
            placeObject(0x00670020, 32.9, -9.0, 61.5, 3.1416);
        end,

        main = function()
            npc.wait(90);
        end
    }
end

event.registerEventAsync("onInitDone", myMod)
```

An object is an NPC with a gadget model (`0x0067....`). `usemapid(0)` keeps it off the walkmesh, so its Y stays where `setpos2` puts it: lift it onto a ledge or into the air. With no `name` it shows no name tag, and with no `talk` there is nothing to press.
