GamerDeMTA Posted July 1, 2013 Posted July 1, 2013 Hi. I need this: **How to do that a ped is only in the dimension 4, and ped has Invul, never dies** **How to execute a function only if the player is near to the ped** **How to give a beer to the player, and a function for check if the player has a beer**
Dealman Posted July 1, 2013 Posted July 1, 2013 You'll just have to be patient and wait for someone to answer, I'd love to help you out but I have no experience working with Peds. Best I could do would be to re-direct you to the MTA Wiki and look for ped related functions.
Castillo Posted July 1, 2013 Posted July 1, 2013 For dimension: setElementDimension And to make it never die, you must cancel the event onClientPedDamage with cancelEvent. To make it execute a function when near, you can use colshapes. createColTube
GamerDeMTA Posted July 1, 2013 Author Posted July 1, 2013 And for give a beer to the player? Like in Normal GTA:SA?
Castillo Posted July 1, 2013 Posted July 1, 2013 Beer? all you can do is attach an object and use an animation.
iMr.3a[Z]eF Posted July 1, 2013 Posted July 1, 2013 Beer? all you can do is attach an object and use an animation. or he can use this https://community.multitheftauto.com/ind ... ls&id=2540
Castillo Posted July 1, 2013 Posted July 1, 2013 Which is exactly what I said, I didn't specifiy how he had to attach it.
GamerDeMTA Posted July 1, 2013 Author Posted July 1, 2013 Did you play The TG Server? U can go near a person, press F and take a beer. (Without anims,
Castillo Posted July 1, 2013 Posted July 1, 2013 Ah, you mean that, well, you must use colshape, bindKey.
Castillo Posted July 1, 2013 Posted July 1, 2013 There's no such thing as "beer", you must use your imagination to make it.
iMr.3a[Z]eF Posted July 1, 2013 Posted July 1, 2013 createMarker "onMarkerHit" -- event setPedAnimation
PaiN^ Posted July 1, 2013 Posted July 1, 2013 Well you'll need to create a marker/col shape in the place you want the player to get beer from, and then use Bone attachments resource to attach the beer ( which is an object in the game ) to the player, And bind a key to set his animation to drink .
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