Jump to content

Problem with my gate.


ramzi

Recommended Posts

    col  = createColTube (2287.1000976563, 605.70001220703, 12.39999961853, 0, 0) -- 
    root = getRootElement () 
      
    othergate1 = createObject ( 980, 2287.1000976563, 605.70001220703, 12.60000038147, 0, 0, 0)  
                                      
      
      
    function Open (thePlayer) 
if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then 
            if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then 
                moveObject (othergate1, 2500, 2287.1000976563, 605.70001220703, 6.9000000953674) 
            end 
        end 
    end   
    addEventHandler ( "onColShapeHit", col, Open) 
      
   function Close (thePlayer) 
if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then 
            if isObjectInACLGroup ( "user."..getAccountName(getPlayerAccount(pla)), aclGetGroup ( "Admin" ) ) then 
                moveObject (othergate1, 2500,2287.1000976563, 605.70001220703, 12.60000038147)  
            end 
        end 
    end 
    addEventHandler ( "onColShapeLeave", col, Close ) 

the Gates don't move why??"i am in team Army btw"

Link to comment

i did like this, and it stills doesn't move!

    col  = createColTube (2287.1000976563, 605.70001220703, 12.39999961853, 0, 0) -- 
    root = getRootElement () 
      
    othergate1 = createObject ( 980, 2287.1000976563, 605.70001220703, 12.60000038147, 0, 0, 0)  
                                      
      
      
    function Open (thePlayer) 
        if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then 
                  moveObject (othergate1, 2500, 2287.1000976563, 605.70001220703, 6.9000000953674) 
           end 
    end   
    addEventHandler ( "onColShapeHit", col, Open) 
      
   function Close (thePlayer) 
       if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then 
                  moveObject (othergate1, 2500,2287.1000976563, 605.70001220703, 12.60000038147)  
            end 
    end 
    addEventHandler ( "onColShapeLeave", col, Close ) 

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