SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 02/09/2009, 09:59 AM   #1
hipy
Huge Clucker
 
Join Date: Jan 2008
Posts: 465
Reputation: 4
Default Control npc

Hi is it just me or is there no info on THE wiki About contrlolling bots
like let them drive in a car over the road or serve you pizza
or is it just me?
hipy is offline  
Old 02/09/2009, 10:06 AM   #2
sebihunter
Gangsta
 
Join Date: Nov 2006
Posts: 583
Reputation: 3
Default Re: Control npc

http://wiki.sa-mp.com/wiki/NPC:StartRecordingPlayback
sebihunter is offline  
Old 02/09/2009, 10:18 AM   #3
pliva_sb
Big Clucker
 
pliva_sb's Avatar
 
Join Date: Mar 2009
Location: Croatia
Posts: 127
Reputation: 1
Default Re: Control npc

Quote:
Originally Posted by hipy
Hi is it just me or is there no info on THE wiki About contrlolling bots
like let them drive in a car over the road or serve you pizza
or is it just me?
you can save waypoint and use .rec file for set bot waypoint
pliva_sb is offline  
Old 02/09/2009, 10:25 AM   #4
hipy
Huge Clucker
 
Join Date: Jan 2008
Posts: 465
Reputation: 4
Default Re: Control npc

Bit Cam you then have sombody i
in Ó pizza shop giving you food
hipy is offline  
Old 02/09/2009, 10:43 AM   #5
Redirect Left
High-roller
 
Redirect Left's Avatar
 
Join Date: Mar 2007
Location: Yorkshire, England
Posts: 1,183
Reputation: 314
Default Re: Control npc

Quote:
Originally Posted by hipy
Bit Cam you then have sombody i
in Ó pizza shop giving you food
In English is helpful.

However, try using Animation to the bot to get the animation of serving.
Redirect Left is offline  
Old 02/09/2009, 10:47 AM   #6
hipy
Huge Clucker
 
Join Date: Jan 2008
Posts: 465
Reputation: 4
Default Re: Control npc

Sorry I'm on my iPod , I mean you go in food shop and you see the npc giving a pizza just like in single player
hipy is offline  
Old 02/09/2009, 11:07 AM   #7
Moustafa
Big Clucker
 
Join Date: Jun 2008
Posts: 188
Reputation: 1
Default Re: Control npc

This is not a bot,
Quote:
Originally Posted by hipy
Sorry I'm on my iPod , I mean you go in food shop and you see the npc giving a pizza just like in single player
It is a sync from singleplayer, like the car accidents syncs.
Moustafa is offline  
Old 14/11/2009, 06:56 PM   #8
denbo1
Big Clucker
 
Join Date: Jul 2009
Posts: 75
Reputation: 0
Default Re: Control npc

A NPC is a recording you make is npc_record so it can do as you put this recording loops else you be smart and put a timer in the code to get it to give it every so and so but that will take you ages to make,

So no you cant unless you think of another way

-Mad_hero
denbo1 is offline  
Old 14/11/2009, 11:35 PM   #9
Sew_Sumi
Huge Clucker
 
Join Date: Jun 2008
Posts: 303
Reputation: 8
Default Re: Control npc

Quote:
Originally Posted by (|Mad_hero|)
A NPC is a recording you make is npc_record so it can do as you put this recording loops else you be smart and put a timer in the code to get it to give it every so and so but that will take you ages to make,

So no you cant unless you think of another way

-Mad_hero
Sorry, But yes he may just be able to...

Using GetXYInFrontOfPlayer and Pauseing the playback when it gets to the start of the recording. unpausing when a player comes in. Then, Returning to the start of the recording to loop.

However, You cannot get them to hand out pizza unless you use an object, and with that, comes the problem, that you'll have to figure out where that object is, and move it with the bots hands to make it look cool.

The taxi NPC script that is default with SAMP 0.3 server has and example of GetXYInFrontOfPlayer.
Sew_Sumi is offline  
Old 18/11/2009, 01:30 PM   #10
denbo1
Big Clucker
 
Join Date: Jul 2009
Posts: 75
Reputation: 0
Default Re: Control npc

Quote:
Originally Posted by Sew_Sumi
Quote:
Originally Posted by (|Mad_hero|)
A NPC is a recording you make is npc_record so it can do as you put this recording loops else you be smart and put a timer in the code to get it to give it every so and so but that will take you ages to make,

So no you cant unless you think of another way

-Mad_hero
Sorry, But yes he may just be able to...

Using GetXYInFrontOfPlayer and Pauseing the playback when it gets to the start of the recording. unpausing when a player comes in. Then, Returning to the start of the recording to loop.

However, You cannot get them to hand out pizza unless you use an object, and with that, comes the problem, that you'll have to figure out where that object is, and move it with the bots hands to make it look cool.

The taxi NPC script that is default with SAMP 0.3 server has and example of GetXYInFrontOfPlayer.
Your on somthing there, but it will take more than 3 weeks to get it workinh no bugs...
like timing and geting parts to move right,
we on about 3000 lines for 1 pizza guy here or somthinmg...
denbo1 is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cruise control mick88 Help Archive 0 27/02/2010 06:28 PM
Help with control structure 'OR' - || pagie1111 Help Archive 1 31/12/2009 05:55 AM
Control panel VC-MP maia123123 Server Support 2 31/10/2009 01:09 PM
What is an control panel? arie9000nerd Everything and Nothing 2 21/08/2009 08:08 AM
[HELP]Need Control PHP Script to control Servers rafanresende Server Support 4 05/05/2009 01:41 AM


All times are GMT. The time now is 04:20 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.