Yang Posted October 21, 2018 Share Posted October 21, 2018 Help bro, I want to see the createColCubeid, This is what I have, local ColUP = createColRectangle ( -3000, 4000, 6000, 200 ) local ColDown = createColRectangle ( -3000, -4000, 6000, 200 ) local tempCol = createColCuboid ( 8.88533, 14.67138, 3.11719, 10.0, 10.0, 10.0 ) bool setDevelopmentMode ( bool enable ) setDevelopmentMode(true) function Down (source ) local Sx, Sy, Sz = getElementVelocity (source) local Px, Py, Pz = getElementPosition (source) setElementVelocity ( source, Sx, Sy, Sz) setElementPosition ( source, Px, Py - 7800, Pz, false) end function Up (source ) local Sx, Sy, Sz = getElementVelocity(source) local Px, Py, Pz = getElementPosition(source) setElementVelocity (source, Sx, Sy, Sz) setElementPosition ( source, Px, Py + 7800, Pz, false) end function Right (source ) local Sx, Sy, Sz = getElementVelocity (source) local Px, Py, Pz = getElementPosition (source) setElementVelocity ( source, Sx, Sy, Sz) setElementPosition ( source, Px- 100, Py, Pz, false) end function Left (source ) local Sx, Sy, Sz = getElementVelocity (source) local Px, Py, Pz = getElementPosition (source) setElementVelocity ( source, Sx, Sy, Sz) setElementPosition ( source, Px+ 80, Py, Pz, false) end addEventHandler( "onColShapeHit", ColUP, Down ) addEventHandler( "onColShapeHit", ColDown, Up ) addEventHandler( "onColShapeHit", ColRight, Left ) Link to comment
Addlibs Posted October 21, 2018 Share Posted October 21, 2018 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now