Jump to content

Portside

Members
  • Posts

    82
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Portside

  1. Nah, it's still moving no matter what distance I am from it.
  2. Nah, unfortunately it didn't work.
  3. I just put it in like that, right?
  4. Thanks a lot, really appreciated your help!
  5. gate = createObject(980, 2187.626953125, -2273.4443359375, 13.546875, 0, 0, 0) -- objID, X, Y, Z, Rotation X, Y, Z function gateOpen() moveObject( gate, 2000, 2188.8193359375, -2272.720703125, 28.495878219604, 0, 0, 130 ) --moves the gate to the open position. time, X, Y, Z, Rotation X, Y, Z end addCommandHandler("go1", gateOpen)--Command /go1 to open gate function gateClose() moveObject( gate, 2000, 2187.626953125, -2273.4443359375, 13.546875, 0, 0, 0 ) --returns the gate to it's starting position. X, Y, Z, Rotation X, Y, Z end addCommandHandler("gc1", gateClose)--Command /gc1 to close gate That's what I've made. It's for a friend, but he asked me to have it within a certain radius.
  6. Eh, like I said. I'm pretty new with this scripting thing. Mind telling me exactly and where this is put? And how it's used. Thanks!
  7. Hi! I'm very new to the MTA scripting, but I can make different small things, edit and stuff like that. But I can make gates too! Problem is, I can do the command anywhere on the map and the gate will still open. Can someone make a gate template for me on how to open the gate within a certain distance of the object? Thanks in advance!
×
×
  • Create New...