Jump to content

I have a dout, how can I activate the develorperMode?


Yang

Recommended Posts

Help bro, I want to see the createColCubeid, 

This is what I have,


 
  1. local ColUP = createColRectangle ( -3000, 4000, 6000, 200 )
  2. local ColDown = createColRectangle ( -3000, -4000, 6000, 200 )
  3.  
  4. local tempCol = createColCuboid ( 8.88533, 14.67138, 3.11719, 10.0, 10.0, 10.0 )
  5. 
  6.  
  7. bool setDevelopmentMode ( bool enable )
  8. setDevelopmentMode(true)
  9.  
  10. function Down (source )
  11.  
  12. local Sx, Sy, Sz = getElementVelocity (source)
  13. local Px, Py, Pz = getElementPosition (source)
  14. setElementVelocity ( source, Sx, Sy, Sz)
  15. setElementPosition ( source, Px, Py - 7800, Pz, false)
  16. end
  17. function Up (source )
  18. local Sx, Sy, Sz = getElementVelocity(source)
  19. local Px, Py, Pz = getElementPosition(source)
  20. setElementVelocity (source, Sx, Sy, Sz)
  21. setElementPosition ( source, Px, Py + 7800, Pz, false)
  22. end
  23. function Right (source )
  24. local Sx, Sy, Sz = getElementVelocity (source)
  25. local Px, Py, Pz = getElementPosition (source)
  26. setElementVelocity ( source, Sx, Sy, Sz) 
  27. setElementPosition ( source, Px- 100, Py, Pz, false)
  28. end
  29. function Left (source )
  30. local Sx, Sy, Sz = getElementVelocity (source)
  31. local Px, Py, Pz = getElementPosition (source)
  32. setElementVelocity ( source, Sx, Sy, Sz)
  33. setElementPosition ( source, Px+ 80, Py, Pz, false)
  34. end
  35. addEventHandler( "onColShapeHit", ColUP, Down )
  36. addEventHandler( "onColShapeHit", ColDown, Up )
  37. addEventHandler( "onColShapeHit", ColRight, Left )



Link to comment

You need to call setDevelopmentMode(true) on a client-side script, and then use the /showcol command. Judging by the fact you use onColShapeHit rather than onClientColShapeHit, I'm guessing that this script is server-side. So you can't use setDevelopmentMode in this file.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...