AMARANT Posted January 22, 2013 Share Posted January 22, 2013 Hello there. Is there a function or some other way to check hitting or punching an object? For example, I want to check if I hit a specific box with my hands. Thanks in advance for answers. Link to comment
TAPL Posted January 22, 2013 Share Posted January 22, 2013 Maybe onPlayerContact? or You can create Col Shape on the object and use event onColShapeHit. Link to comment
Anderl Posted January 22, 2013 Share Posted January 22, 2013 (edited) I don't think you can check for hand contact with elements in MTA, if there is, it's too hard for a beginner ( unless you already have a good base in maths and even so you would need lil LUA knowledge ). Edited January 25, 2013 by Guest Link to comment
AMARANT Posted January 24, 2013 Author Share Posted January 24, 2013 I noticed this new function recently. I don't use 1.4 MTA version yet, so I wonder if that function might be a solution of my problem? Has anybody checked it? Link to comment
Anderl Posted January 24, 2013 Share Posted January 24, 2013 There's no way to know if it was hand contact with that event, it just gets triggered when some element hits an object. Link to comment
Moderators IIYAMA Posted January 25, 2013 Moderators Share Posted January 25, 2013 There are some possibility's, but they aren't just one function. https://wiki.multitheftauto.com/wiki/GetPedBonePosition This means you can pick some positions of the human body. https://wiki.multitheftauto.com/wiki/ProcessLineOfSight processLineOfSight(startX,startY,startZ,endX,endY,endZ,true,true,true,true,true,false,false,false,ignorePlayer)) IgnorePlayer must be you, https://wiki.multitheftauto.com/wiki/OnClientRender Use onClientRender to check those data. This is a possibility, good luck. Link to comment
AMARANT Posted January 25, 2013 Author Share Posted January 25, 2013 Thanks, I'll give it a try 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