Chyste Posted January 27, 2015 Share Posted January 27, 2015 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 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
Tomas Posted January 27, 2015 Share Posted January 27, 2015 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
Recommended Posts