Firespider Posted July 18, 2022 Share Posted July 18, 2022 (edited) Hello! I need a little help, I want to solve that a command can be used in a specific place and I don't know how to solve it. (I will send the code soon) Edited July 18, 2022 by Firespider Link to comment
Tekken Posted July 18, 2022 Share Posted July 18, 2022 Hi, why not sending the code already? Also to do so you might need: https://wiki.multitheftauto.com/wiki/GetDistanceBetweenPoints3D or a 'better' solution for me would be: https://wiki.multitheftauto.com/wiki/CreateColPolygon Link to comment
Firespider Posted July 18, 2022 Author Share Posted July 18, 2022 This is a Code Can you help me, what should I do to make it work? Link to comment
Tekken Posted July 18, 2022 Share Posted July 18, 2022 Well first of all what's wrong ? Second of all the script you shown only create a col sphere and save it to a table so I assume it's more to it isn't it? Link to comment
Firespider Posted July 18, 2022 Author Share Posted July 18, 2022 Thank you for sending the forum link of the function that needs to be used for this script, but how can I solve it so that if they go into that ColPolygon, they can only use the command. Can you help me with that? Link to comment
Scripting Moderators xLive Posted July 18, 2022 Scripting Moderators Share Posted July 18, 2022 Welcome to the forums @Firespider. Your thread has been moved to the Scripting section. Please use this section for scripting questions in the future. 1 Link to comment
Tekken Posted July 18, 2022 Share Posted July 18, 2022 You will have to check if the player is in that colshape https://wiki.multitheftauto.com/wiki/IsElementWithinColShape or check when he hits that colshape https://wiki.multitheftauto.com/wiki/OnElementColShapeHit 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