thund3rbird23 Posted July 23, 2023 Share Posted July 23, 2023 (edited) My goal is draw outline around the vehicle's engine when the hood is open but I don't know it's possible to do or not... of course there are modded vehicles not default ones. I know I need to open the vehicle's hood with SetVehicleDoorState but how can I draw the outline around the engine? is there any function to get the engine position for each vehicles or I need to calculate it manually? and then I can use the DxDrawLine function or which one? By outline I mean like this, but around the engine: Edited July 23, 2023 by thund3rbird23 Link to comment
#!_A7M8D Posted July 26, 2023 Share Posted July 26, 2023 (edited) Hello its possible by using shader check Ped shell Shader (For Example) : https://wiki.multitheftauto.com/wiki/Shader_examples Cheers! Edited July 26, 2023 by #!_A7M8D Link to comment
thund3rbird23 Posted July 28, 2023 Author Share Posted July 28, 2023 Thank you for your reply, but how can I get the vehicle engine's position and such things? I don't think so there is a function for that Link to comment
#!_A7M8D Posted July 28, 2023 Share Posted July 28, 2023 (edited) Hello , i think because gta sa is limited world so engine is a part of the vehicle you can get more parts position https://wiki.multitheftauto.com/wiki/GetVehicleComponentPosition https://wiki.multitheftauto.com/wiki/Vehicle_Components Cheers! Edited July 28, 2023 by #!_A7M8D Link to comment
thund3rbird23 Posted July 28, 2023 Author Share Posted July 28, 2023 (edited) Yeah, I know about these functions. But some server did it already they're just "highlighted" the engine for example when you are a mechanic and you are repair the engine then it's like the engine is "glowing", "highlighted" or I dont know which word can describe Edited July 28, 2023 by thund3rbird23 Link to comment
#!_A7M8D Posted August 2, 2023 Share Posted August 2, 2023 Hello @thund3rbird23 , Can you show us video and we will try to know how they did they they may be using a custom object for the engine Cheers ! Link to comment
thund3rbird23 Posted August 14, 2023 Author Share Posted August 14, 2023 On 02/08/2023 at 12:07, #!_A7M8D said: Hello @thund3rbird23 , Can you show us video and we will try to know how they did they they may be using a custom object for the engine Cheers ! Link to comment
Przemcio Posted August 14, 2023 Share Posted August 14, 2023 (edited) It's a custom object, if you want to achieve similar effect, you'd need create or get an engine model, put it into MTA, then attach it to the vehicle (cause there's no engine as an object natively), the engine position can be retrieved by getVehicleDummyPosition with "engine" as a second argument. I assume you know how to use shader to outline the object. Edited August 14, 2023 by Przemcio 1 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