Jump to content

Im bad.


CheiN

Recommended Posts

Hola guys, this is the sh*t, i was making a script but making it i was confused with the setElementVelocity, can someone correct me?

  
local x,y,z = getElementPosition (theVehicle) 
local ocup = getOcuppedVehicle (thePlayer) 
local marker1  = createMarker ( x,y,z, xr,yr,zr, "corona", 2.2, 255, 0, 123, 120 ) 
local xr,yr,zr = getElementRotation 
function MarkerHit( hitElement, matchingDimension ) 
  local elementType = getElementType( hitElement )  
   blowVehicle (theVehicle) 
  speedx, speedy, speedz = getElementVelocity (marker1) 
setElementVelocity ( marker1, speedx, speedy + 4, speedz) 
end 
bindKey ("rctrl","down", leshot) 
addEventHandler ("onMarkerHit", marker1, MarkerHit) 

Like germans says: Danke!!!!

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