Advertisement
NanoBob

first gate sleep

May 10th, 2013
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1.     x1,y1,z1=2705.8994140625,-2405.099609375,16.39999961853
  2.     gate1=createObject(2990,x1,y1,z1,0,0,270)
  3.    
  4.     colisionsph= createColSphere(x1,y1,z1, 5.0 )
  5. function gate()
  6.     z3=z1+4
  7.     moveObject (gate1, 4000,x1,y1,z3)
  8.     -- Hier wil ik de "sleep"
  9.     moveObject (gate1, 2000,x1,y1,z1)
  10. end
  11.  
  12. function spawn()
  13.     TeamLess=createTeam(TeamLess,0,300,0)
  14.     spawnPlayer(source,2791,-2456,14)
  15.     fadeCamera(source,true)
  16.     setCameraTarget(source,source)
  17.     outputChatBox("NanoBob's testserver", source)
  18.     outputChatBox("Type /login [PASSWORD] to login or /register[PASSWORD] to register")
  19.     giveWeapon(source,31,4000)
  20.     setPlayerTeam(source,TeamLess)
  21. end
  22. theZone=colisionsph
  23. addEventHandler("onPlayerJoin", getRootElement(),spawn)
  24. addEventHandler("onColShapeHit",theZone, gate)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement