XxCozzaxX Posted August 6, 2011 Share Posted August 6, 2011 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 Link to comment
BinSlayer1 Posted August 6, 2011 Share Posted August 6, 2011 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 Link to comment
qaisjp Posted August 8, 2011 Share Posted August 8, 2011 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 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