Posts: 435
Threads: 82
Joined: Jan 2008
Reputation:
0
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?
Posts: 435
Threads: 82
Joined: Jan 2008
Reputation:
0
Bit Cam you then have sombody i
in а pizza shop giving you food
Posts: 435
Threads: 82
Joined: Jan 2008
Reputation:
0
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
Posts: 75
Threads: 8
Joined: Jul 2009
Reputation:
0
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
Posts: 6,242
Threads: 8
Joined: Jun 2008
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.