12p Posted September 13, 2010 Share Posted September 13, 2010 I please you, MTA team, make the camera an element, or make a function that retrieves it as an element. It will make easier some "camera hacks", for example, using attachElements (player,camera,1,1,0.5) so camera position from player is changed. Link to comment
dzek (varez) Posted September 13, 2010 Share Posted September 13, 2010 There is no problem with attaching camera to the player, the problem is you can't use your mouse to free look.. But i don't know if this can be solved anyway (never seen such thing in scm, original gta scripting) Link to comment
vovo4ka Posted September 13, 2010 Share Posted September 13, 2010 It's easy to do with camera matrix functions and OnRender events Link to comment
12p Posted September 13, 2010 Author Share Posted September 13, 2010 It's not. I tried making a RE4 static camera. "setCameraMatrix" in "onClientRender" event doesn't work properly. I want to ATTACH the element (if player rotates, camera gets static to the player look). Link to comment
dzek (varez) Posted September 13, 2010 Share Posted September 13, 2010 use onClientPreRender for camera matrix setting - and i havent successfully make custom camera with mouse look - but it's possible in some way - there was a server with fps look. Link to comment
vovo4ka Posted September 13, 2010 Share Posted September 13, 2010 With matrix operations you can do this (like in Stage resource) Link to comment
12p Posted September 14, 2010 Author Share Posted September 14, 2010 use onClientPreRender for camera matrix setting - and i havent successfully make custom camera with mouse look - but it's possible in some way - there was a server with fps look. Yeah, I tried doing it... It works fine, camera works... But the direction is the problem D: Link to comment
Dark Dragon Posted September 17, 2010 Share Posted September 17, 2010 where exactly is the problem? you can use exact x y and z coordinates and the roll for that. Link to comment
12p Posted September 18, 2010 Author Share Posted September 18, 2010 Aiming and looking (with mouse). It's not possible to aim the weapon, and change your point of view uisng the mouse. You can move and change direction, but you must use your keyboard for that. Link to comment
Dark Dragon Posted September 18, 2010 Share Posted September 18, 2010 you can use the onClientCursorMove event, but aiming your weapon will probably never be possible that way. Link to comment
12p Posted September 19, 2010 Author Share Posted September 19, 2010 For that, I'm telling. Please make the player's camera an element yes?. Link to comment
Towncivilian Posted September 19, 2010 Share Posted September 19, 2010 But i don't know if this can be solved anyway (never seen such thing in scm, original gta scripting) I have an example of "free look" through SCM (in VC, but same code more or less will work in SA, too). It's not smooth 360º rotation, though I think it'd be possible to do so. This SCM is trx's work back in February 2005. Here is a YouTube video: I've no idea how to achieve the same thing in LUA/MTASA, though. Link to comment
DiSaMe Posted September 19, 2010 Share Posted September 19, 2010 aiming your weapon will probably never be possible that way. If setPedAimTarget worked on players, there would be no problem. Link to comment
12p Posted September 19, 2010 Author Share Posted September 19, 2010 setPedAimTarget doesn't work; it causes another bug. Link to comment
Faw[Ful] Posted September 19, 2010 Share Posted September 19, 2010 It would be nice to use the stage resource to make an media tracker like track mania, use advanced reccorded camera matrix to make a kind of movie to present the map ingame and it take no big size its just a custom camera movement ingame and rotation like the video editor of gta IV , I see a little work of that in basemod to present the map, one of my suggestion I need to post. That + animated texture = MTA can do what Track mania does and a better GAME ! Link to comment
Recommended Posts