How to make NPCs talk?
#1

Hello, well i am interested not really in making my NPCs talk. So i am doing food system in a similar way, like it is in SinglePlayer where you order the food and the NPC shows you what you are about to order. In Singleplayer if i recall correctly the NPC, everytime you get something he says some sort of a phrase. Is it possible to use some of those phrases? Or make the NPC say something, that he could in SinglePlayer? Also, i am using FCNPC.
Reply
#2

Sorry, accidentally posted in the wrong section.. Meant to post in scripting help..
Reply
#3

You can use SendClientMessage...
Reply
#4

He meant the audio. I'm sure you can record it yourself and play the .mp3 file at the function when you want to buy the food.
Reply
#5

check if the player in range of NPC and run audio.
How hard could it be ? ;_;
Reply
#6

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint

--
https://sampwiki.blast.hk/wiki/PlayerPlaySound (http://pastebin.com/A1PbQZPd)

https://sampwiki.blast.hk/wiki/SendClientMessage
Reply
#7

I suggest using FNPC and not FCNPC.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)