Guest User

Untitled

a guest
Jul 22nd, 2012
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. function createTheGate ()
  2. myGate = createObject (3115, 412.19921875, -1841.599609375, -4, 0, 90, 90 )
  3. end
  4. addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate )
  5.  
  6. function openMygat ( )
  7. moveObject ( myGate , 3115, 400.3994140625, -1841.599609375, -4 )
  8. end
  9. addCommandHandler("openswat",openMyGate)
  10.  
  11. function movingMyGateBack ()
  12. moveObject (myGate, 3115, 412.19921875, -1841.599609375, -4 )
  13. end
  14. addCommandHandler("closeswat",movingMyGateBack)
  15. end
Advertisement
Add Comment
Please, Sign In to add comment