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 San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted May 30, 2013 Posted May 30, 2013 Did it work? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted May 30, 2013 Posted May 30, 2013 You're welcome. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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?
Castillo Posted May 30, 2013 Posted May 30, 2013 "rightfrontdummy" that's defined where? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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" San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Castillo Posted May 30, 2013 Posted May 30, 2013 Show me the whole code. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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