Jump to content

object rotate by acl group


Resmurf

Recommended Posts

  
  
<gate x="-302.4921875" y="1507.392578125" z="78.181114196777" rx="0" ry="0" rz="0" x2="-302.4921875" y2="1507.392578125" z2="70.681114196777" rx2="0" ry2="0" rz2="0" objectID="2990" team="CIA" collisionx="-309.9990234375" collisionY="1501.8447265625" collisionZ="77.910583496094" collisionSize="13.5" raising="0" interiorID="0" /> 
  
  

should i put instead of team, aclgroup?

Link to comment
Well, you'll need to edit that script then.

  
door = createObject (2990, -9.0146484375, 2066.83203125, 20.4453125, 0, 0, 90) 
myMarker = createMarker ( -17.3857421875, 2058.5, 19.626815795898, 'corona', 2.0, 0, 120, 225, 150 ) 
  
function markerHit (player) 
local theAccount = getPlayerAccount(player) 
if theAccount then 
local accountName = getAccountName(theAccount) 
    if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then 
    moveObject ( door, 1500, -9.0146484375, 2056.33203125, 20.4453125 ) 
        end 
    end 
end 
addEventHandler ( "onMarkerHit", myMarker, markerHit ) 
  
function markerLeave (player) 
local theAccount = getPlayerAccount(player) 
if theAccount then 
local accountName = getAccountName(theAccount) 
    if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then 
    moveObject ( door, 2990, -9.0146484375, 2066.83203125, 20.4453125 ) 
         end 
    end 
end 
addEventHandler ( "onMarkerLeave", myMarker, markerLeave ) 
  

Ok i did some research and i found this code, i replaced but didnt worked, the marker is on one side on top, cant it be invisible all around the door?

Link to comment
door = createObject (2990, -9.0146484375, 2066.83203125, 20.4453125, 0, 0, 90) 
myMarker = createMarker ( -9.4607706069946, 2067.0712890625, 16.4921875, 'cylinder', 8.0, 0, 120, 225, 0 ) 
  
function markerHit (player) 
local theAccount = getPlayerAccount(player) 
if theAccount then 
local accountName = getAccountName(theAccount) 
    if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then 
    moveObject ( door, 1500, -9.0146484375, 2056.33203125, 20.4453125 ) 
        end 
    end 
end 
addEventHandler ( "onMarkerHit", myMarker, markerHit ) 
  
function markerLeave (player) 
local theAccount = getPlayerAccount(player) 
if theAccount then 
local accountName = getAccountName(theAccount) 
    if isObjectInACLGroup ( "user." .. accountName, aclGetGroup ( "Admin" ) ) then 
    moveObject ( door, 2990, -9.0146484375, 2066.83203125, 20.4453125 ) 
         end 
    end 
end 
addEventHandler ( "onMarkerLeave", myMarker, markerLeave ) 

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