Creating a non-moving npc
#1

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 -.-
Reply
#2

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

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.
Reply
#4

Use SetPlayerPos under OnPlayerSpawn?
Reply
#5

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

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.
Reply
#7

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

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

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
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)