SA-MP Forums Archive
Recording a train - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Recording a train (/showthread.php?tid=163546)



Recording a train - Conroy - 27.07.2010

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


Re: Recording a train - John_F - 27.07.2010

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


Re: Recording a train - Conroy - 27.07.2010

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


Re: Recording a train - John_F - 27.07.2010

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


Re: Recording a train - Conroy - 27.07.2010

Spawning a train automatically puts it on the tracks?


Re: Recording a train - Kar - 28.07.2010

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


Re: Recording a train - willsuckformoney - 28.07.2010

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


Re: Recording a train - John_F - 28.07.2010

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.


Re: Recording a train - Kar - 28.07.2010

wow how wtf


Re: Recording a train - mastasquizy - 28.07.2010

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