View Single Post
  #9  
Old 09-08-2009, 07:50 PM
AHO's Avatar
AHO AHO is offline
Approved Member
 
Join Date: Aug 2008
Location: Germany
Posts: 538
Default

Quote:
Originally Posted by Liz Shaw View Post
I couldn't figure out what to do with the hex editor, so I haven't done anything new. Plus, I have other things on my plate. Actually, how can I place new items in rooms (eg. new clothes, new weapons)?
This is only possible via script commands e.g.

Level.CreateWorldItem( "wear:EmbassyAgent_1" , "equipment" , 821.00, 4.00, -368.00, 0.0, 0.0, 0.0, 'id_wear1' );
  1. "wear:EmbassyAgent_1" is the item you wanna spawn, the
    item names you can find inside the equipment.shadvs, weapons.shadvs etc.
  2. "equipment" is the library (class) name. Same as shadvs files I mentioned above
  3. 821.00, 4.00, -368.00 are the coordinates (x,y,z). You
    can aquire the current position via console command:
    pl_showpos.
  4. 0.0, 0.0, 0.0 I dunno, let it as it is
  5. 'id_wear1' is the id of the newly created item.
    Necessary but not used in case of spawning.
-AHO
Reply With Quote