Lloyd Logan Posted February 6, 2013 Posted February 6, 2013 How would i get a players dimension? How would i set a players dimension? -Lloyd
Lloyd Logan Posted February 6, 2013 Author 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
manawydan Posted February 6, 2013 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 )
DNL291 Posted February 6, 2013 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.
Lloyd Logan Posted February 7, 2013 Author 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?
Lloyd Logan Posted February 7, 2013 Author 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?
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