Jump to content

How to do this?


Mr.Gim

Recommended Posts

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 by Guest
Link to comment

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. :roll:

Link to comment

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...