COOKIE2 Posted April 20, 2010 Share Posted April 20, 2010 (edited) hey i made a skyhouse and with entrance i did 3 garagedoors 1=cars 2=karts 3=entrance house how do i open the garages and how do i open them with a command example /opendoor didnt work : ( (i tried running as client and server) is ok? open=false door=getElementById("17951") addCommandHandler("opendoor",function() if open then moveObject(door,2,2235.5236816406,-1849.1158447266,0.71337890625) else moveObject(door,2,2236.2734375,-1849.0936279297,2.4133789539337) end moved=not moved end) Edited April 20, 2010 by Guest Link to comment
karlis Posted April 20, 2010 Share Posted April 20, 2010 (edited) open=false door=getElementById("id here") addCommandHandler("opendoor",function() if open then moveObject(door,time,x,y,z) else moveObject(door,time,x,y,z) end open=not open end) i hope you got that "id here", x,y,z, and time should be adjusted to your values Edited April 21, 2010 by Guest Link to comment
Jason_Gregory Posted April 21, 2010 Share Posted April 21, 2010 door = createObject ( Objectid, X, Y, Z, rX, rY, rZ ) Work with the Object Element if it dont work with getElementById. 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