Mr.Gim Posted June 6, 2012 Share Posted June 6, 2012 (edited) Hey there, this is my second topic here. I'm currently mapping my first map and of course I'm in need of some help. Look at this video, from 0:49 to 0:55. Can you tell me how can I do that? How can I throw the car like that and make it fall exactly onto a wall ride? Big thanks in advance! Edited June 8, 2012 by Guest Link to comment
50p Posted June 6, 2012 Share Posted June 6, 2012 We can't see the video. Make sure you post the link correctly. Link to comment
Mr.Gim Posted June 8, 2012 Author Share Posted June 8, 2012 We can't see the video. Make sure you post the link correctly. MY bad sorry, I usually check twice before posting. Is it any better now? Link to comment
Guest Guest4401 Posted June 8, 2012 Share Posted June 8, 2012 https://wiki.multitheftauto.com/wiki/onClientMarkerHit createMarker getPedOccupiedVehicle setElementVelocity Link to comment
50p Posted June 8, 2012 Share Posted June 8, 2012 There should be easy way of doing it in the map editor if there isn't such way then it's time to script a "plugin". All you need is posted by karthik_184 above. Link to comment
Mr.Gim Posted June 8, 2012 Author Share Posted June 8, 2012 Dont get me wrong but I dont understand a thing from what he posted above. What do I have to do with that examples? Where do I type them? How do I make them? I'm TOTALLY noob at scripting, i never ever made a script. Link to comment
GTX Posted June 8, 2012 Share Posted June 8, 2012 Do you want jump script? If so: jPower = 1 j = { createMarker(1553.5115966797, -3808.0339355469, 83.53466796875, "cylinder", 1.5, 255, 250,110,100) } function hMarker (player) if player ~= getLocalPlayer() then return end if getElementType ( player ) == "player" then if isPedInVehicle ( player ) then local vP = getPedOccupiedVehicle ( player ) if getVehicleController ( vP ) == player then sX, sY, sZ = getElementVelocity ( vP ) for i, v in ipairs(j) do if j[i] then setElementVelocity ( vP, sX, sY, sZ + jPower ) end end end end end end addEventHandler ( "onClientMarkerHit", getResourceRootElement(getThisResource()), hMarker ) 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