Placing 3D Objects

The following discusses how to place 3D objects in your game. 3d object can be displayed by the mud (eg {odog,prx0.1,+}) or specified in the config file parentmaps and therefore position is either specified by the mud or in the config file parentmaps.

Positioning an object in parentmaps
To position an object in parentmaps you can type 'ctrl p' while in the mud client and this will place your mud position into the clipboard. Thus you can walk to a position in say a restaurant and get the position you'd like to put your chair. You can then paste the coordinates from the clipboard of the config file:

<POSITION name="chair" x="300.2" y="200.5"/>

To orientate an object an object by default should face north so if you want it to face east you'd set turn to 90.

<POSITION name="chair" x="300.2" y="200.5" turn="90"/>

In the future a config file editor might be developed that allows a player to move object around in 3D and put automatically into the parentmaps instead of typing it by hand into the XML/XSLT.

Position an object in swlpc
If you are creating a dog in swlpc you could type the following code into a room script:

dog=clone_object("room/npc/dog");
move_object(dog,this_object());
dog->set_xy(222.2,303.3);

The 'set_xy' function specifies that the dog is at x=222.2, y=303.3. If you type 'ctrl p' like previously in parentmaps you can paste the coordinates into the set_xy function to place the dog. If you use the mud mapper you can run paste it into the room script without using Linux.