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?
Narutimmy Posted May 23, 2013 Author Posted May 23, 2013 getPedBonePositionsetCameraMatrix onClientPreRender me puede explicar como se usa?
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
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)
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?
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.
Recommended Posts