Jump to content

Enter rear of Cargobob


XxCozzaxX

Recommended Posts

Posted

Can someone tell me if it is possible to make a script so you can enter and shoot out of the back of the cargobob?

If so, could you point me in the right direction as to what functions to use?

Regards,

Cozza

Posted

well maybe attach an object (like a ramp) to the back of the cargobob, then teleport the player so he stands on the ramp, then freeze him there (so he doesn't fall off) and give him some weapons using mta functions

https://wiki.multitheftauto.com/wiki/CreateObject

https://wiki.multitheftauto.com/wiki/AttachElements

https://wiki.multitheftauto.com/wiki/SetElementPosition

https://wiki.multitheftauto.com/wiki/SetElementFrozen

https://wiki.multitheftauto.com/wiki/GiveWeapon

Note: make everything server-side.

There's no native way of doing what you want, I just came up with a workaround hope it helps :)

  • MTA Team
Posted

Don't freeze him there, the freeze function sucks immensely (in 1.1 AND 1.0.5); instead, use attach elements for attaching the player to the cargobob.

You would want to set the ramp's alpha to 0 (setElementAlpha) and you would like to set the collisions of the object (setElementCollisionsEnabled - I recommend using client sided) false to everyone but the person (or people) on the ramp.

Good Luck :P

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