Guest User

Untitled

a guest
Dec 14th, 2013
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.91 KB | None | 0 0
  1. local gate1 = createObject(10184,2496.5,2772.6499023438,12.300000190735, 0, 0, 0 )
  2. local gate2 = createObject(10184,2496.5,2772.6499023438,17.39999961853,0,0,0)
  3. local thefirstmarker = createMarker ( 2496.6, 2773.5,10.65, "cylinder", 10.7, 255, 255, 255, 0)
  4.  
  5.  
  6.  
  7. function open1 (thePlayer)
  8.     if ( getTeamName(getPlayerTeam(thePlayer)) == "Unique" ) then  
  9.         moveObject(gate1, 1500, 2496.5,2772.6499023438, 7.2890000343323, 0, 0, 0 )
  10.     moveObject(gate2, 1500, 2496.5,2772.6499023438, 22.789, 0, 0, 0 )
  11.     end
  12. end
  13. addEventHandler("onMarkerHit", thefirstmarker, open1 )
  14.  
  15.  
  16. function close1 (thePlayer)
  17.     if ( getTeamName(getPlayerTeam(thePlayer)) == "Unique" ) then
  18.         moveObject(gate1, 2500, 2496.5,2772.6499023438,12.300000190735, 0, 0, 0 )
  19.     moveObject(gate2, 2500,2496.5,2772.6499023438,17.39999961853, 0, 0, 0 )
  20.     end
  21. end
  22. addEventHandler("onMarkerLeave", thefirstmarker, close1 )
  23.  ---
Advertisement
Add Comment
Please, Sign In to add comment