Advertisement
Guest User

Untitled

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