NavigationUser login |
Placing 3D ObjectsThe 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 <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 dog=clone_object("room/npc/dog"); 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. |