..:D&G:.. Posted April 19, 2015 Share 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? Link to comment
Dimos7 Posted April 19, 2015 Share Posted April 19, 2015 (edited) want both gate be together without gap and degress? Edited April 19, 2015 by Guest Link to comment
..:D&G:.. Posted April 19, 2015 Author Share 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) Link to comment
Dimos7 Posted April 19, 2015 Share 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) Link to comment
ALw7sH Posted April 20, 2015 Share 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) Link to comment
..:D&G:.. Posted April 20, 2015 Author Share Posted April 20, 2015 It worked, thanks! 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