Jump to content

Una duda,¿como activo el developerMode?


Yang

Recommended Posts

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

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...