Jump to content

ACL group auto moving gates!


Recommended Posts

Just change the coordinates and also change the object ID if u have another one to add.

local gate = createObject(985, 263.9, -1333.5, 53.251480102539, 0, 0, 35) 
local marker = createMarker(264.177734375, -1333.2490234375, 53.251480102539, "cylinder", 8, 0, 0, 0, 0) 
  
function moveGate(psource) 
     local Omegausergroup = getAccountName(getPlayerAccount(psource)) 
     if isObjectInACLGroup("user."..Xyruviausergroup, aclGetGroup("OMEGA")) then 
          moveObject(gate, 1000, 263.9, -1333.5, 46) 
     end 
end 
addEventHandler("onMarkerHit", marker, moveGate) 
  
function move_back_gate() 
     moveObject(gate, 1000, 263.9, -1333.5, 53.251480102539) 
end 
addEventHandler("onMarkerLeave", marker, move_back_gate) 
  

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