[BUG]IsPlayerNPC
#1

I made some NPCs which do not need to play a playback(i.e. just stand on some places).
I set them stop playing playback when they spawn in their npcmode scripts, and used setmypos.
I used setplayerpos for them again in onplayerspawn in my gamemode.
However, when I use IsPlayerNPC to check if they're NPCs, the function returns false.
Any solution?
Reply
#2

I had a bug like this. If you don't give them a script to follow to do, they don't act like NPCs. It would be best just to record standing still in their places and play that on a loop.
Reply
#3

Yes I do that before, but I think it's slower than not playing one.
Therefore I removed the playbacks.
Reply
#4

You need to keep epmty npcmodes file then connect and it should work fine also you need to rerecord for 0.3c i think or recompile npcmode in any case if its empty or not.

If that wont work then probably its a bug or faulth in your script because npc zombies works fine..
Reply
#5

I'll add back the playbacks again if it will not be fixed is future versions/RCs.
Anyway thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)