SA-MP Forums Archive
Creating a non-moving npc - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Creating a non-moving npc (/showthread.php?tid=177170)



Creating a non-moving npc - nejc001 - 16.09.2010

First how to create npc that just stands on coordinates that i give?
Second how to add things like setplayerpos, setfacingangle... (for npc of course).
note: yes i saw wiki/npc website -.-


Re: Creating a non-moving npc - MadeMan - 19.09.2010

First: use npcidle script
Second: you can use these functions on NPC


Re: Creating a non-moving npc - nejc001 - 19.09.2010

I know how to connect a npc in gm, to start it in server, just i dont know how to script a npcmod that spawns a npc (at point that i will set) when server starts.
I tryed all other things with existed npcmodes.


Re: Creating a non-moving npc - MadeMan - 19.09.2010

Use SetPlayerPos under OnPlayerSpawn?


Re: Creating a non-moving npc - nejc001 - 22.09.2010

you cant use SetPlayerPos under *public OnNPCSpawn()* -.-
Whats the SetPlayerPos script for npcs?


Re: Creating a non-moving npc - Rachael - 22.09.2010

I'm pretty sure if you follow the normal procedure for recording an npc, and make a quick 20 second recording with no movement, then edit your NPC script not to loop it will work.

Note: if the NPC is to be set inside an interior you may need to set its interior and VW OnPlayerSpawn.


Re: Creating a non-moving npc - nejc001 - 22.09.2010

Do you know a good FS for npc recording?
I had one, but was only for 0.3a -.-


Re: Creating a non-moving npc - Rachael - 22.09.2010

I think the npc_record filterscript comes included with the samp server
http://forum.sa-mp.com/showthread.ph...ght=connectnpc


Re: Creating a non-moving npc - Desert - 22.09.2010

Make a NPC script only with the folowing

pawn Код:
#include <a_npc>
main(){}
Load the NPC, set hes possition angle interior and stuff. And freeze him.

Worked for me


Re: Creating a non-moving npc - Ash. - 22.09.2010

Quote:
Originally Posted by nejc001
Посмотреть сообщение
Do you know a good FS for npc recording?
I had one, but was only for 0.3a -.-
You could create a very basic one by using the functions and callbacks in a_npc.inc

- This forum requires that you wait 120 seconds between posts. Please try again in 36 seconds.