Communicate with NPC?
#1

Sorry if I'm missing something obvious, but you have to "StartRecordingPlayback" in the file located in npcmodes, and those files don't support normal SA-MP callbacks. How would I make my bot, say, wait in the car until someone has entered it's passenger seat, or before someone selects an option (via command?) before it StartRecordingPlayback's?

Also a possable Xfire/0.3 bug: I was in my localhost and someone said Xfire was saying I was in the server "48.243.234.21:64782" (which dosn't exist).
Reply
#2

NPC Scripts can detect when a message is recieved. Simply send a message when someone has entered the vehicle to the Bots ID and start the playback in the NPC script.

Tip:

Have two recordings, one idle, and the other is what you want him to do when someone gets in. So loop the first recording where he's sitting waiting for someone to hop in, and playback the second one by making the gamemode send a message to the bot and then playback the second one
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)