Making NPCs appear and disappear
#1

I'm making a myth busting gamemode just for the fun and due to me being extremely bored lately. I wanted to know If it's possible to make the NPCs appear and disappear script wise, after they've completed their route (which was recorded, of course).
Reply
#2

I never worked with NPC's but probably this is the function:

https://sampwiki.blast.hk/wiki/NPC:StopRecordingPlayback

Stopping should remove the NPC, pausing should "pause" it, so they will appear, but will not move, so when you use Resume again, it will continue from the place it was left.

And here is a full list of the NPC - related functions:

https://sampwiki.blast.hk/wiki/NPC:Main_Page
Reply
#3

You could destroy them and re-connect them afterwards.
OR You can change the virtual world of NPC bot so that it'll get disappear and appear them in the default world SetRNPCVirtualWorld(npcid, worldid) This native is from ARNPC
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)