Yang Posted October 21, 2018 Share Posted October 21, 2018 Ayuda compa, quiero poder ver los createColCuboid si me ayudas te lo agredeceria muchooooo, Esto es lo que tengo, la idea es crear un mapa infinito tepeando al jugador a un lado del mapa cuando llegue a los limites de otro 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
#Dv^ Posted October 21, 2018 Share Posted October 21, 2018 https://wiki.multitheftauto.com/wiki/SetDevelopmentMode 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