Jump to content

Is There Something Wrong?


illestiraqi

Recommended Posts

This is the Area 51, The front small tiny entrance place, I added a gate and then the gate to the garage doesent move and than 5 seconds later the gate at the front small tiny entrance apears and the other garage gates are fked. Please Fix.

This is the gate at the front, where the tiny entrance is.

    gate1= createObject ( 1553, 97, 1920.5, 20.10000038147, 0, 0, 90 ) 
    gate2 = createObject ( 1553, 96.900001525879, 1920.5, 18.299999237061, 0, 0, 90 ) 
    gatecol = createColCircle ( 97.089881896973, 1920.7144775391, 19.524454116821, 50 ) 
  
function opengates(thePlayer) 
if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then 
       moveObject (gate1, 5000, 97, 1920.5, 22.60000038147 ) 
       moveObject (gate2, 5000, 96.900001525879, 1920.5, 15.89999961853 ) 
end 
end 
addEventHandler( "onColShapeHit", gatecol, opengates ) 
  
function closegates(thePlayer) 
if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then 
       moveObject (gate1, 1553, 97, 1920.5, 20.10000038147 ) 
       moveObject (gate2, 1553, 96.900001525879, 1920.5, 18.299999237061 ) 
end 
end 
addEventHandler( "onColShapeLeave", gatecol, closegates ) 

---------------------------------------------------------------------------------------------------------------------------------------------

This is the gate to the Garage

    gate1= createObject ( 2929, 215.99548339844, 1875.40234375, 13.938992500305, 0, 0, 0 ) 
    gate2 = createObject ( 2929, 211.94564819336, 1875.40234375, 13.938992500305, 0, 0, 0 ) 
    gatecol = createColCircle ( 213.94564819336, 1875.40234375, 13.938992500305, 50 ) 
  
function opengates(thePlayer) 
if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then 
       moveObject (gate1, 5000, 218.99548339844, 1875.40234375, 13.938992500305 ) 
       moveObject (gate2, 5000, 208.94564819336, 1875.40234375, 13.938992500305 ) 
end 
end 
addEventHandler( "onColShapeHit", gatecol, opengates ) 
  
function closegates(thePlayer) 
if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then 
       moveObject (gate1, 5000, 215.99548339844, 1875.40234375, 13.938992500305 ) 
       moveObject (gate2, 5000, 211.94564819336, 1875.40234375, 13.938992500305 ) 
end 
end 
addEventHandler( "onColShapeLeave", gatecol, closegates ) 

Link to comment

Try this:

    gate3= createObject ( 2929, 215.99548339844, 1875.40234375, 13.938992500305, 0, 0, 0 ) 
    gate4 = createObject ( 2929, 211.94564819336, 1875.40234375, 13.938992500305, 0, 0, 0 ) 
    gatecol1 = createColCircle ( 213.94564819336, 1875.40234375, 13.938992500305, 50 ) 
  
function opengatesg(thePlayer) 
if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then 
       moveObject (gate3, 5000, 218.99548339844, 1875.40234375, 13.938992500305 ) 
       moveObject (gate4, 5000, 208.94564819336, 1875.40234375, 13.938992500305 ) 
end 
end 
addEventHandler( "onColShapeHit", gatecol1, opengatesg ) 
  
function closegatesg(thePlayer) 
if ( getTeamName(getPlayerTeam(thePlayer)) == "Army" ) then 
       moveObject (gate3, 5000, 215.99548339844, 1875.40234375, 13.938992500305 ) 
       moveObject (gate4, 5000, 211.94564819336, 1875.40234375, 13.938992500305 ) 
end 
end 
addEventHandler( "onColShapeLeave", gatecol1, closegatesg ) 

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