skript-citizens help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Meo Baka

Member
Jan 4, 2024
1
0
1
I want to create an NPC at point A and make it move to point B, then disappear, but the scripts I'm using don't allow that
1704347827690.png


C#:
command /getnpc:
    trigger:
        set {_loc} to location at (263.5, -60, 84.5) in world "Server"
        spawn a pig citizen named "PigNPC" at {_loc}
        wait 5 seconds
        set {_endloc} to location at (284, -60, 84) in world "Server"
        set pathfind location of the npc named "PigNPC" to {_endloc} with speed 1