SA-MP Forums Archive
Help with an NPC - 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: Help with an NPC (/showthread.php?tid=262093)



Help with an NPC - thimo - 16.06.2011

Hey i have a train NPC but the trailers are on front here is a picture:


Uploaded with ImageShack.us
How can i turn it around so the brownstreak is in front and the trailers BEHIND it? This is the code:
[pawn]
new train;
train = AddStaticVehicle(538, 0,0,0, 0, 1, 1);

if(!strcmp(playername,"TrainDriverLV",true)) {
PutPlayerInVehicle(playerid,penis,0);
SetPlayerColor(playerid,0xFFFFFFFF);
}


Re: Help with an NPC - randomkid88 - 16.06.2011

With AddStaticVehicle, change the Z Rotaion to 180. The train snaps to the nearest track so you might have to play with that angle a little bit.