Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 22nd, 2012  |  syntax: None  |  size: 0.50 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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