Interior: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 5: Line 5:
==Uses==
==Uses==
To allow a player to enter an interior, you should use the [[setElementInterior]] function on the player you wish to move. You can also use this function on other elements, for example to make a vehicle or object appear in the interior.
To allow a player to enter an interior, you should use the [[setElementInterior]] function on the player you wish to move. You can also use this function on other elements, for example to make a vehicle or object appear in the interior.
==Relevant scripting functions==
*[[getElementInterior]]
*[[setElementInterior]]
*[[spawnPlayer]]


==See Also==
==See Also==

Revision as of 11:46, 5 January 2008

An interior in GTA is an area that isn't 'outside'. For example, inside houses, casinos, restaurants, shops etc. Players can not, by default, access these. You can use various scripting functions to move elements into these interiors. When you change the interior a player is in, they can only see the non-player elements in that interior. Players can see each other in whatever interior they are in.

You can have up to 255 interiors, interior 0 being the first one and referring to the normal GTA world.

Uses

To allow a player to enter an interior, you should use the setElementInterior function on the player you wish to move. You can also use this function on other elements, for example to make a vehicle or object appear in the interior.

Relevant scripting functions

See Also