i need help with this how can i make when im near the doors to open it automactly and how to make it just for one user heres my code
gate = createObject (3095,941.900390625,1689.400390625,19.299999237061,270,0,0)
function OpenGates (thePlayer)
moveObject (gate1,3000,941.90002441406,1689.4000244141,27.700000762939)
end
addCommandHandler( "open",OpenGates )
function CloseGates (thePlayer)
moveObject (gate1,3000,941.900390625,1689.400390625,19.299999237061)
end
addCommandHandler("close",CloseGates)