montenegro11 Posted January 10, 2014 Share Posted January 10, 2014 I've tried GateMaker but it glitches alot; When I make the gate for team, the gate doesn't even appear, when I make a normal gate, the gate appears and opens but does not close. Well, if there's no fix for that, if someone can teach me how to script a gate/another resource for gates..? Link to comment
xXMADEXx Posted January 11, 2014 Share Posted January 11, 2014 You can use: createObject moveObject createMarker -- Event: onMarkerHit Link to comment
Deepu Posted January 14, 2014 Share Posted January 14, 2014 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
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