adamb Posted May 30, 2013 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..?
Castillo Posted May 30, 2013 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
adamb Posted May 30, 2013 Author 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?
adamb Posted May 30, 2013 Author Posted May 30, 2013 getVehicleComponentPosition ( vehicle theVehicle, string theComponent ) Its the vehicle component.
Castillo Posted May 30, 2013 Posted May 30, 2013 Yeah, but you must put it as a string, like this: "rightfrontdummy"
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