Blaawee Posted October 20, 2011 Share Posted October 20, 2011 Hi i'm new in scripting and i want to learn it i'm asking about something if can be possible ?? First one : i make a subway Station, can i put a train on the rail? second one : i want make ped for Train driver That's All Link to comment
^Dev-PoinT^ Posted October 20, 2011 Share Posted October 20, 2011 yes its possible the ped example function pedLoad ( name ) createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) end addEventHandler ( "onResourceStart", getRootElement(), pedLoad ) Link to comment
Blaawee Posted October 20, 2011 Author Share Posted October 20, 2011 Thx ^Dev-PoinT^ But i mean make the ped in the vichale !! not out Link to comment
TAPL Posted October 20, 2011 Share Posted October 20, 2011 function pedLoad () local Ped = createPed ( 120, 5540.6654, 1020.55122, 1240.545 ) local Vehicle = createVehicle ( 405, 5540.6654, 1020.55122, 1240.545 ) warpPedIntoVehicle ( Ped, Vehicle, 0 ) -- this will put the ped as driver, you can change the seat end addEventHandler ( "onResourceStart", resourceRoot, pedLoad ) Link to comment
^Dev-PoinT^ Posted October 20, 2011 Share Posted October 20, 2011 Nice Tapl i forget abot That Link to comment
Blaawee Posted October 20, 2011 Author Share Posted October 20, 2011 thx TAPL But the Vehicle is trian ^^ so i want random how ? Link to comment
Blaawee Posted October 20, 2011 Author Share Posted October 20, 2011 is this right ? -------------- --dancer -------------- function pedLoad() dancer1 = createPed(292, -1495.1926269531, 761.52935791016, 7.1834278106689, 0) dancer2 = createPed(293, -1496.5218505859, 765.72064208984, 7.1875, 0) dancer3 = createPed(298, -1498.4525146484, 761.25640869141, 7.1875, 0) dancer4 = createPed(304, -1499.099609375, 763.75598144531, 7.1875, 0) guard1 = createPed(17, -1513.1009, 764.656738, 7.1875, 0) guard2 = createPed(17, -1513.09411, 761.21850, 7.1875, 0) setPedRotation(dancer1, 35) setPedRotation(dancer2, 100) setPedRotation(dancer3, -20) setPedRotation(dancer4, 150) setPedRotation(guard1, 100) setPedRotation(guard2, 100) setPedAnimation(dancer1, "DANCING", "dnce_M_a") setPedAnimation(dancer2, "DANCING", "DAN_Left_A") setPedAnimation(dancer3, "DANCING", "dance_loop") setPedAnimation(dancer4, "DANCING", "dnce_M_d") end addEventHandler ( "onResourceStart", resourceRoot, pedLoad ) Link to comment
^Dev-PoinT^ Posted October 20, 2011 Share Posted October 20, 2011 i made for you This function enterTrain(theVehicle, seat, jacked) if (getVehicleType" class="kw2">getVehicleType(theVehicle) == "Train") then outputChatBox("Welcome onboard!", source) outputChatBox("You entered ".. getVehicleType" class="kw2">getVehicleType(theVehicle) ..".", source) end end addEventHandler("onPlayerVehicleEnter", getRootElement(), enterTrain) Link to comment
Blaawee Posted October 20, 2011 Author Share Posted October 20, 2011 from where did you got the code ?? Link to comment
^Dev-PoinT^ Posted October 20, 2011 Share Posted October 20, 2011 i made it from wiki vehicle Functions Link to comment
CapY Posted October 20, 2011 Share Posted October 20, 2011 Blaawee use the wiki : https://wiki.multitheftauto.com/wiki/Main_Page Look for the Client side functions&events and Server side functions&events. Link to comment
Blaawee Posted October 20, 2011 Author Share Posted October 20, 2011 i made it from wiki vehicle Functions Nice Dev-PoinT is there any way to make ultimate seat ? Link to comment
CapY Posted October 20, 2011 Share Posted October 20, 2011 What you mean by 'ultimate seat' ? Link to comment
^Dev-PoinT^ Posted October 20, 2011 Share Posted October 20, 2011 maybe he mean 2 vehicles or more ? Link to comment
Blaawee Posted October 20, 2011 Author Share Posted October 20, 2011 More than passengers Link to comment
^Dev-PoinT^ Posted October 20, 2011 Share Posted October 20, 2011 More Passengers = More Ped Make Link to comment
Blaawee Posted October 20, 2011 Author Share Posted October 20, 2011 No Not Peds , i want plaeyers More Than 2 can be in the trine Link to comment
TAPL Posted October 20, 2011 Share Posted October 20, 2011 i think is not possible, but you can attach the Player/Ped to the train Link to comment
^Dev-PoinT^ Posted October 20, 2011 Share Posted October 20, 2011 mybe Set Ped position into Trian ? Link to comment
Blaawee Posted October 20, 2011 Author Share Posted October 20, 2011 No ^Dev-PoinT^ i don't want the peds , i want the players be more than 2 in the trine Link to comment
^Dev-PoinT^ Posted October 20, 2011 Share Posted October 20, 2011 use creatMarker if 1 Player Or More hit the marker warp him to The Trine ? Link to comment
Blaawee Posted October 20, 2011 Author Share Posted October 20, 2011 nice idea , with this function i have to make sub way station right Link to comment
^Dev-PoinT^ Posted October 20, 2011 Share Posted October 20, 2011 No Problem My Friend Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now