Jump to content

Ped no rotate in Z axis with attached


Z_ReC

Recommended Posts

Posted

Hi, I'm Z_ReC and have a problem. :fadein:

Look at this Code :

Server Code:

 addEventHandler("onResourceStart", getRootElement(), 
    function() 
        theCar = createVehicle(411, 0, 0, 3) 
        ped = createPed(299, 0,0,0) 
        misil = createObject(3790, 0, 0, 0) 
        attachElements(ped, theCar, 0, 0, 1.7) 
        attachElements(misil, theCar, 0, 0, 3, 0, 0, 270) 
    end) 

Get in the car, and drive.

As can be seen when running these lines, the PED created does not attached to the Z axis of rotation of the VEHICLE!

I wonder if there is a solution, or is it a bug of MTA!

Very VERY thanks for your time! I hope your answers :D (Sorry for my basic English, I'm say Spanish :lol: )

Bed goes up, Bed goes down. Bed goes up, Bed goes down. Bed goes up, Bed goes down. Bed goes up, Bed goes down.

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