Advertisement
NanoBob

basic gate

Sep 13th, 2014
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.50 KB | None | 0 0
  1. BaseGate=createObject(976, 1357.1999511719, 709.09997558594, 9.6999998092651,0,0, 90)
  2. collisionShape=createColSphere(1357.1999511719,709.09997558594,9.6999998092651,5)
  3.  
  4. function openGate(player)
  5.     moveObject( BaseGate, 2000, 1357.1999511719, 709.09997558594, 4)
  6. end
  7. addEventHandler("onColshapeHit", collisionShape, openGate)
  8.  
  9. function closeGate(player)
  10.     moveObject(BaseGate, 2000, 1357.1999511719, 709.09997558594, 9.6999998092651)
  11. end
  12. addEventHandler("onColShapeLeave", collisionShape, closeGate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement