Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local gate1 = createObject(10184,2496.5,2772.6499023438,12.300000190735, 0, 0, 0 )
- local gate2 = createObject(10184,2496.5,2772.6499023438,17.39999961853,0,0,0)
- local thefirstmarker = createMarker ( 2496.6, 2773.5,10.65, "cylinder", 10.7, 255, 255, 255, 0)
- function open1 (thePlayer)
- if ( getTeamName(getPlayerTeam(thePlayer)) == "Unique" ) then
- moveObject(gate1, 1500, 2496.5,2772.6499023438, 7.2890000343323, 0, 0, 0 )
- moveObject(gate2, 1500, 2496.5,2772.6499023438, 22.789, 0, 0, 0 )
- end
- end
- addEventHandler("onMarkerHit", thefirstmarker, open1 )
- function close1 (thePlayer)
- if ( getTeamName(getPlayerTeam(thePlayer)) == "Unique" ) then
- moveObject(gate1, 2500, 2496.5,2772.6499023438,12.300000190735, 0, 0, 0 )
- moveObject(gate2, 2500,2496.5,2772.6499023438,17.39999961853, 0, 0, 0 )
- end
- end
- addEventHandler("onMarkerLeave", thefirstmarker, close1 )
- ---
Advertisement
Add Comment
Please, Sign In to add comment