Jump to content

Dimensions


Lloyd Logan

Recommended Posts

Posted

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!

Posted

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!

Posted
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 ) 

560x95_FFFFFF_09FF00_050505_000000.png

"Querer não é poder, mas tentar é avançar"!

Posted
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.

Posted
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!

Posted
setCameraInterior 
setCameraMatrix 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...