Jump to content

Gate maker or something like that?


montenegro11

Recommended Posts

you wanna first make a gate, then you gotta override the lua functions that is

local gate = createObject(id, x, y, z, rx, ry, rz) 
       local marker = createMarker(x, y, z, "cylinder", 2, 0, 200, 255) 
       function openGate (hitPlayer, matchingDimension) 
            moveObject(gate, x, y, z) --- where you wanna move the gate to 
       end 
       addEventHandler("onClientMarkerHit", marker, openGate) 
      
       function closeGate(leavingPlayer, matchingDimension) 
            moveObject(gate, x, y, z) -- original position 
       end 
       addEventHandler("onClientMarkerLeave", marker, closeGate) 
            

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...