Wei Posted July 18, 2012 Share Posted July 18, 2012 How can I make this work ? veh = createVehicle( 411, 1124.53772, -1459.35596, 15.79688 ) function lol ( source ) setCameraTarget( source, veh ) end addCommandHandler("t", lol ) Link to comment
Castillo Posted July 19, 2012 Share Posted July 19, 2012 You can't set the camera target to a vehicle. Link to comment
Cadu12 Posted July 19, 2012 Share Posted July 19, 2012 You can make your own camera system. Link to comment
Wei Posted July 19, 2012 Author Share Posted July 19, 2012 function carCamera(source) fadeCamera(source, true, 5) setCameraMatrix(source, 1121.64282, -1449.44080, 22.49406, 1124.53772, -1459.35596, 15.79688, 0, 180, 180) showPlayerHudComponent( source, "radar", false ) showCursor( source, true ) end how can I spawn back player ? Link to comment
AMARANT Posted July 19, 2012 Share Posted July 19, 2012 What do you mean by "spawn back"? If you're talking about setting camera back to player then you can use: setCameraTarget(source,source) Link to comment
Anderl Posted July 19, 2012 Share Posted July 19, 2012 function carCamera(source) fadeCamera(source, true, 5) setCameraMatrix(source, 1121.64282, -1449.44080, 22.49406, 1124.53772, -1459.35596, 15.79688, 0, 180, 180) showPlayerHudComponent( source, "radar", false ) showCursor( source, true ) end how can I spawn back player ? Note that this won't follow the car. Link to comment
Wei Posted July 19, 2012 Author Share Posted July 19, 2012 I don't want to follow it... I've finished this resource Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now