Narutimmy Posted May 23, 2013 Posted May 23, 2013 Hola bueno en el Resource de Slenderman se tiene primera persona y queria saber como aser eso? que al estar en un auto sea en primera persona , al caminar todo eso? mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Narutimmy Posted May 23, 2013 Author Posted May 23, 2013 getPedBonePositionsetCameraMatrix onClientPreRender me puede explicar como se usa? mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Arsilex Posted May 23, 2013 Posted May 23, 2013 mira la wiki ni siquiera lo miraste.... ni te esfuerzas...
Narutimmy Posted May 23, 2013 Author Posted May 23, 2013 mira la wiki ni siquiera lo miraste.... ni te esfuerzas... amm que raro editastes el mensaje? ami me salia otra cosa mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
Plate Posted May 23, 2013 Posted May 23, 2013 No estoy seguro pero no seria algo asi? function camara() local x, y, z = getPedBonePosition(source, 6) setCameraMatrix(localPlayer, x, y, z) end addEventHandler("onClientPreRender", getLocalPlayer(), camara) Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Arsilex Posted May 24, 2013 Posted May 24, 2013 No estoy seguro pero no seria algo asi? function camara() local x, y, z = getPedBonePosition(source, 6) setCameraMatrix(localPlayer, x, y, z) end addEventHandler("onClientPreRender", getLocalPlayer(), camara) Si así estaría mas o menos pero queda mejor así: addEventHandler("onClientPreRender", root, function() x, y, z = getPedBonePosition(getLocalPlayer(), 6) setCameraMatrix(x, y, z, x + x1, y + y1, z + z1) local tarX, tarY, tarZ = getWorldFromScreenPosition(screenWidth/2, screenHeight/2, 30) setPedAimTarget(getLocalPlayer(), tarX, tarY, tarZ) end )
Narutimmy Posted May 24, 2013 Author Posted May 24, 2013 No estoy seguro pero no seria algo asi? function camara() local x, y, z = getPedBonePosition(source, 6) setCameraMatrix(localPlayer, x, y, z) end addEventHandler("onClientPreRender", getLocalPlayer(), camara) Si así estaría mas o menos pero queda mejor así: addEventHandler("onClientPreRender", root, function() x, y, z = getPedBonePosition(getLocalPlayer(), 6) setCameraMatrix(x, y, z, x + x1, y + y1, z + z1) local tarX, tarY, tarZ = getWorldFromScreenPosition(screenWidth/2, screenHeight/2, 30) setPedAimTarget(getLocalPlayer(), tarX, tarY, tarZ) end ) Porque ninguno de los 2 me funciona? mtasa://66.85.14.178:22003 Ts3: thezombiworld.com:7777
StanMarsh Posted May 24, 2013 Posted May 24, 2013 No estoy seguro pero no seria algo asi? function camara() local x, y, z = getPedBonePosition(source, 6) setCameraMatrix(localPlayer, x, y, z) end addEventHandler("onClientPreRender", getLocalPlayer(), camara) Si así estaría mas o menos pero queda mejor así: addEventHandler("onClientPreRender", root, function() x, y, z = getPedBonePosition(getLocalPlayer(), 6) setCameraMatrix(x, y, z, x + x1, y + y1, z + z1) local tarX, tarY, tarZ = getWorldFromScreenPosition(screenWidth/2, screenHeight/2, 30) setPedAimTarget(getLocalPlayer(), tarX, tarY, tarZ) end ) Porque ninguno de los 2 me funciona? Busca el problema en el debug. En el foro se me conocia Como alexmercer1998 y Ezio Auditore esta es mi nuevo nombre para que esten informados
Castillo Posted May 24, 2013 Posted May 24, 2013 Y acordate de ponerlo como client side. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Recommended Posts