..:D&G:.. Posted April 19, 2015 Posted April 19, 2015 Hi guys, I am trying to attach a gate to CJ garage but when I use attachElements, the gate gets in the middle of the garage, and turned 90 degrees local garage = createObject(17950, tonumber(x), tonumber(y), tonumber(z), tonumber(rot1), tonumber(rot2), tonumber(rot3)) local gate = createObject(17951, tonumber(x)+4.22, tonumber(y)+1.05, tonumber(z)-0.25, tonumber(rot1), tonumber(rot2), tonumber(rot3)-90) attachElements ( gate, garage ) Any ideas?
Dimos7 Posted April 19, 2015 Posted April 19, 2015 (edited) want both gate be together without gap and degress? Edited April 19, 2015 by Guest
..:D&G:.. Posted April 19, 2015 Author Posted April 19, 2015 want both gate be together without gap and degress? What do you mean? I want to spawn the gate at a position, then attach it to the garage (in front of the garage)
Dimos7 Posted April 19, 2015 Posted April 19, 2015 local garage = createObject(17950, tonumber(x), tonumber(y), tonumber(z), tonumber(rot1), tonumber(rot2), tonumber(rot3)) local gate = createObject(17951, tonumber(x)+4.22, tonumber(y)+1.05, tonumber(z)-0.25, tonumber(rot1), tonumber(rot2), tonumber(rot3)) attachElements(gate, garage)
ALw7sH Posted April 20, 2015 Posted April 20, 2015 Have a look to attachElements arguments local garage = createObject(17950, tonumber(x), tonumber(y), tonumber(z), tonumber(rot1), tonumber(rot2), tonumber(rot3)) local gate = createObject(17951, tonumber(x)+4.22, tonumber(y)+1.05, tonumber(z)-0.25, tonumber(rot1), tonumber(rot2), tonumber(rot3)-90) attachElements ( gate, garage, 4.22, 1.05,-0.25, 0, 0, -90)
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