adamb Posted May 30, 2013 Share Posted May 30, 2013 So, is it possible for LUA to get the location ( call ) of a dummy in a 3d model, and lets say create a corona at its location? Those dummies, the green squares, they mark the location of where doors turn, headlights and taillights are. so..? Link to comment
Castillo Posted May 30, 2013 Share Posted May 30, 2013 You can try with this function: https://wiki.multitheftauto.com/wiki/Ge ... ntPosition and this one to get all components: https://wiki.multitheftauto.com/wiki/Ge ... Components Link to comment
adamb Posted May 30, 2013 Author Share Posted May 30, 2013 I hope you know man, but YOU are awesome Link to comment
adamb Posted May 30, 2013 Author Share Posted May 30, 2013 Actually, disregard my last [596] = {["mode"]="led", [1]={["pos"]={"rightfrontlight"}, ["color"]={0,0,255}, ["size"]=0.25, ["phase"]=0.0}, rightfrontlight = getVehicleComponentPosition ( sourcecar, rightfrontdummy ) All coronas spawn at 0.0.0 did i mark something wrong? Link to comment
Castillo Posted May 30, 2013 Share Posted May 30, 2013 "rightfrontdummy" that's defined where? Link to comment
adamb Posted May 30, 2013 Author Share Posted May 30, 2013 getVehicleComponentPosition ( vehicle theVehicle, string theComponent ) Its the vehicle component. Link to comment
Castillo Posted May 30, 2013 Share Posted May 30, 2013 Yeah, but you must put it as a string, like this: "rightfrontdummy" Link to comment
adamb Posted May 30, 2013 Author Share Posted May 30, 2013 Did that, still spawns all at 0,0,0 Link to comment
adamb Posted May 31, 2013 Author Share Posted May 31, 2013 Bump, can anyone help me via skype? 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