Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. function createTheGate ()
  2.  
  3. myGate1 = createObject ( 16775, 1840.4000244141,110,44.299999237061 , 0, 0, 88 )
  4. myGate2 = createObject ( 11102, 1839.3000488281,147.60000610352 ,37.400001525879 , 0, 0, 90 )
  5.  
  6. function openMyGate ( )
  7. moveObject ( myGate1, 2500, 1840.4000244141,110, 36.200000762939 )
  8. end
  9. addCommandHandler("abrir",openMyGate)
  10.  
  11. function movingMyGateBack ()
  12. moveObject ( myGate1, 2500, 1840.4000244141,110,44.299999237061 )
  13. end
  14. addCommandHandler("fechar",movingMyGateBack)
  15.  
  16. function openMyGate ( )
  17. moveObject ( myGate2, 500, 1839.3000488281,147.60000610352 ,32 )
  18. end
  19. addCommandHandler("abrir2",openMyGate)
  20.  
  21. function movingMyGateBack ()
  22. moveObject ( myGate2, 2500, 1839.3000488281,147.60000610352 ,37.400001525879 )
  23. end
  24. addCommandHandler("fechar2",movingMyGateBack)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement