Resource:Interiors

From Multi Theft Auto: Wiki
Revision as of 21:11, 8 January 2008 by Talidan (talk | contribs) (New page: ==Introduction== The interiors resource provides a generic system for use of the single player's interiors system. This means placing warp points where when players hit the marker, they a...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

The interiors resource provides a generic system for use of the single player's interiors system. This means placing warp points where when players hit the marker, they are set into the appropriate interior.

Loading interiors from the resource

By default, the interiors resource offers over 200 of single player's own interior locations. Coupled with dimensions, each and every warp point offers a unique location - with a total of over 450 locations.

Loading these interiors is easy. Starting the interiors resource will auto load all these preset warp points and will be ready to use out of the box.

Adding your own interiors

The interiors resource supports a flexible .map based element system to add your own interiors. The syntax follows an entry and return system. An interiorEntry element must have a unique id, and the interiorReturn element uses the "refid" attribute to link them together.

<interiorEntry	id=""	posX=""	posY=""	posZ=""	rotation=""	dimension=""	interior=""	/>
<interiorReturn	refid=""	posX=""	posY=""	posZ=""	rotation=""	dimension=""	interior=""	/>

All attributes are required else the interior will not function properly.

  • posX: A float representing the X position of the interior warp.
  • posY: A float representing the Y position of the interior warp.
  • posZ: A float representing the Z position of the interior warp.
  • rotation: A float representing the rotation of the player when he reaches the marker in the specified element.
  • dimension: An integer representing the dimension of the player when he reaches the interior warp in the specified element. In other words, which dimension the warp point exists.
  • interior: An integer representing the interior world of the player when he reaches the interior warp in the specified element. In other words, which interior the warp point exists.

Example

<interiorEntry	id="AMMUN1"	posX="1368.35"	posY="-1279.06"	posZ="12.55"	rotation="-0.100006"	dimension="0"	interior="0"	/>
<interiorReturn	refid="AMMUN1"	posX="286.15"	posY="-41.54"	posZ="1000.57"	rotation="90"	interior="1"	dimension="0"	/>

The interiorEntry element here is located at 1368.35,-1279.06,12.55. When the player reaches this location, he will be warped to the attributes specified in the linked interiorReturn element - 286.15,-41.54,1000.57 with a rotation of 90 degrees, into the new interior world 1. When the player hits this marker again, the transverse will happen.