Jump to content

[Ayuda] Camara


Chyste

Recommended Posts

Como podria hacer que al teletransportarse la camara tenga la rotacion del jugador? ej: que no pase esto al teletransportarse que la camara no salga asi, si no mirando al frente mgFh2L.png

function teleport()

Teleport1 = createMarker ( 1555.50195, -1675.60474, 16.8, "arrow", 1.5, 0, 0, 255, 255, getRootElement() )

function MarkerHit( hitElement, matchingDimension, interior )

setElementPosition ( hitElement, 246.79550, 62.32333, 1003.64063 )

setElementDimension ( hitElement, 0 )

setElementInterior ( hitElement, 6 )

setElementRotation(hitElement, 0, 0, 0)

end

addEventHandler( "onMarkerHit", Teleport1, MarkerHit )

end

addEventHandler ( "onResourceStart", getRootElement (), teleport )

Link to comment
  
function teleport() 
Teleport1 = createMarker ( 1555.50195, -1675.60474, 16.8, "arrow", 1.5, 0, 0, 255, 255, getRootElement() ) 
  
function MarkerHit( hitElement, matchingDimension, interior ) 
setElementPosition ( hitElement, 246.79550, 62.32333, 1003.64063 ) 
setElementDimension ( hitElement, 0 )  
setElementInterior ( hitElement, 6 ) 
setElementRotation(hitElement, 0, 0, 0) 
setCameraTarget(hitElement,hitElement) 
end 
addEventHandler( "onMarkerHit", Teleport1, MarkerHit ) 
  
end 
addEventHandler ( "onResourceStart", getRootElement (), teleport ) 
  

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...