Recording a train
#1

Hi, is it possible to record a train for an NPC to use? I know there already trains which go around the map, but I only want the train to go to and from Fort Carson and the small town east of it.

-Conroy
Reply
#2

Yes, take a look at the NPC tutorial.
https://sampforum.blast.hk/showthread.php?tid=95034
Reply
#3

I know how to make NPC's, I have a few, but I was wondering how I would go about doing it in a train. How would I spawn a train on the tracks in order to record it?

-Conroy
Reply
#4

Script a Vehicle spawner?
Or just add a train to your script, enter it then record the vehicle path.
Reply
#5

Spawning a train automatically puts it on the tracks?
Reply
#6

okay. get the pos in-game make sure its near the tracks then restart and it will be there after u addthe static vehilce

if u spawn a train in-game it wont show up
Reply
#7

ithink he wants to know how to make the bot be in teh train and go around teh city or stuff -_- ?
Reply
#8

Quote:
Originally Posted by Kar
Посмотреть сообщение
okay. get the pos in-game make sure its near the tracks then restart and it will be there after u addthe static vehilce

if u spawn a train in-game it wont show up
Actually there are ways to spawn trains IG.
Reply
#9

wow how wtf
Reply
#10

Quote:
Originally Posted by Kar
Посмотреть сообщение
wow how wtf
Instaed of CreateVehicle, use AddStaticVehicleEx (note the 'Ex' part at the end)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)