Difference between revisions of "PlaceAtMe"

49 bytes removed ,  02:22, 28 December 2010
m
→‎Warning: Repeated Use Causes Save-Game Bloat: Replaced external link with equivalent internal link.
imported>Thalassicus
imported>JdeRau
m (→‎Warning: Repeated Use Causes Save-Game Bloat: Replaced external link with equivalent internal link.)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
  player.PlaceAtMe Ninja, 1, 256, 1  
  player.PlaceAtMe Ninja, 1, 256, 1  


Places the object at the calling object, in the direction you specify and the distance. If that location is not safe (in the air, in a wall, etc), the object will be placed at one of the other axes or at the object's exact location.  
Places the object at the calling object, in the direction you specify and the distance. If that location is not safe (in the air, in a wall, etc), the object will be placed at one of the other axes or at the calling object's exact location.  


Direction is:  
Direction is:  
Line 22: Line 22:
Objects created with '''PlaceAtMe''' are not automatically deleted by the game. (Calling the Disable function only hides the object, but does not delete it.) As a result, they become part of the savegame file and increase its size.
Objects created with '''PlaceAtMe''' are not automatically deleted by the game. (Calling the Disable function only hides the object, but does not delete it.) As a result, they become part of the savegame file and increase its size.


Use the [http://obse.silverlock.org/obse_command_doc.html#Reference DeleteReference] function to delete non-actor objects created with PlaceAtMe. This requires running the CS with [[Oblivion Script Extender]] version 18 or later.
Use the [[DeleteReference]] function to delete non-actor objects created with PlaceAtMe. This requires running the CS with [[Oblivion Script Extender]] version 18 or later.


To delete an actor, you can [[MoveTo|move them to]] an interior cell the player is not in, [[kill]] them and [[ResetInterior|reset]] the cell. When the player next enters the cell, all dead actors in the cell are deleted. Note this requires the player to actually enter the cell before actors in it will be deleted, which can restrict usefulness. [[Talk:Common_Mistakes|recent tests]] seem to show that living actors are removed as well.
To delete an actor, you can [[MoveTo|move them to]] an interior cell the player is not in, [[kill]] them and [[ResetInterior|reset]] the cell. When the player next enters the cell, all dead actors in the cell are deleted. Note this requires the player to actually enter the cell before actors in it will be deleted, which can restrict usefulness. [[Talk:Common_Mistakes|recent tests]] seem to show that living actors are removed as well.
Anonymous user