Jump to content

garage doors


COOKIE2

Recommended Posts

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 by Guest
Link to comment
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 by Guest
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...