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 If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE SCOTLAND, my hometown, and the Home of GTA!
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 If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE SCOTLAND, my hometown, and the Home of GTA!
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 ) "Querer não é poder, mas tentar é avançar"!
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. Please do not PM me with scripting related question nor support, use the forums instead.
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? If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE SCOTLAND, my hometown, and the Home of GTA!
Castillo Posted February 7, 2013 Posted February 7, 2013 setCameraInterior setCameraMatrix San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
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? If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE SCOTLAND, my hometown, and the Home of GTA!
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