Lloyd Logan Posted February 6, 2013 Share Posted February 6, 2013 How would i get a players dimension? How would i set a players dimension? -Lloyd Link to comment
Vision Posted February 6, 2013 Share Posted February 6, 2013 setElementDimension getElementDimension Link to comment
Lloyd Logan Posted February 6, 2013 Author Share Posted February 6, 2013 I realise now that it was a stupid question in the way I wrote it, how to attatch an element to an Interior? -Lloyd Link to comment
manawydan Posted February 6, 2013 Share Posted February 6, 2013 getElementDimension ( theElement ) setElementDimension ( theElement, dimension ) example in wiki function onPlayerEnterVehicle ( theVehicle, seat, jacked ) if ( getElementDimension ( source ) == 0 ) then -- if the player is in dimension 0 setElementDimension ( source, 1 ) -- set his dimension to 1 setElementDimension ( theVehicle, 1 ) -- set his vehicle's dimension to 1 as well end end addEventHandler ( "onPlayerVehicleEnter", getRootElement ( ), onPlayerEnterVehicle ) function onPlayerExitVehicle ( theVehicle, seat, jacker ) if ( getElementDimension ( source ) == 1 ) then -- if the player is in dimension 1 setElementDimension ( source, 0 ) -- set his dimension back to 0 setElementDimension ( theVehicle, 0 ) -- set his vehicle's dimension back to 0 as well end end addEventHandler ( "onPlayerVehicleExit", getRootElement ( ), onPlayerExitVehicle ) Link to comment
DNL291 Posted February 6, 2013 Share Posted February 6, 2013 I realise now that it was a stupid question in the way I wrote it, how to attatch an element to an Interior?-Lloyd If you mean teleport the player to an interior use: setElementInterior. Link to comment
Lloyd Logan Posted February 7, 2013 Author Share Posted February 7, 2013 I realise now that it was a stupid question in the way I wrote it, how to attatch an element to an Interior?-Lloyd If you mean teleport the player to an interior use: setElementInterior. How would I set a camera matrix inside an interior? Link to comment
Castillo Posted February 7, 2013 Share Posted February 7, 2013 setCameraInterior setCameraMatrix Link to comment
Lloyd Logan Posted February 7, 2013 Author Share Posted February 7, 2013 setCameraInterior setCameraMatrix So Castillo, i made the player, when they hit the marker they are spawned to int 10 x, y, z . If i set the cam int to 10 will it be in the same dimension? 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