Difference between revisions of "PlaceAtMe"
Jump to navigation
Jump to search
Warning from using the reference of inventory-items
imported>JOG (It works fine with creatures, NOT with leveled items of course.) |
imported>JOG (Warning from using the reference of inventory-items) |
||
Line 12: | Line 12: | ||
:2 = left | :2 = left | ||
:3 = right | :3 = right | ||
This function can be used with leveled creature lists as well. | |||
It can't be used with leveled items, though. Leveled items are not supposed to be placed into the world ou can use them exclusively inside containers. Trying to create an item from a leveled list this way will just cause the yellow exclamation mark (Marker_Error.NIF) to appear. | |||
==Getting the Created Object's Reference== | ==Getting the Created Object's Reference== | ||
Line 29: | Line 32: | ||
The refName variable will now have a reference to ObjectToBeCreated. | The refName variable will now have a reference to ObjectToBeCreated. | ||
This reference is only reliable for objects that can't be picked up. Accessing the reference of an inventory-item after someone picked it up, can crash the game. | |||
==Console Use== | ==Console Use== |