Difference between revisions of "PlaceAtMe"
Jump to navigation
Jump to search
imported>Maturin |
imported>Valkrist m |
||
Line 2: | Line 2: | ||
PlaceAtMe ''ItemID, count, distance, direction'' | PlaceAtMe ''ItemID, count, distance, direction'' | ||
'''Example:''' | '''Example:''' | ||
PlaceAtMe Ninja Man, 1, 256, 1 | player.PlaceAtMe Ninja Man, 1, 256, 1 | ||
Line 16: | Line 16: | ||
This function can be used with leveled lists as well (leveled creatures or items). | This function can be used with leveled lists as well (leveled creatures or items). | ||
Note: The "ItemID" requested is NOT the editorID from the Construction Set, but rather the FormID. FormID can be found for all items and actors just to the right of the EditorID tab in the CS, although the tab may need to be enlarged. | |||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Miscellaneous Functions]] | [[Category: Miscellaneous Functions]] |
Revision as of 23:17, 29 March 2006
Syntax:
PlaceAtMe ItemID, count, distance, direction
Example:
player.PlaceAtMe Ninja Man, 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.
Direction is:
- 0 = front
- 1 = back
- 2 = left
- 3 = right
This function can be used with leveled lists as well (leveled creatures or items).
Note: The "ItemID" requested is NOT the editorID from the Construction Set, but rather the FormID. FormID can be found for all items and actors just to the right of the EditorID tab in the CS, although the tab may need to be enlarged.