Difference between revisions of "PlaceAtMe"
Jump to navigation
Jump to search
no edit summary
imported>Millinghordesman |
imported>Mrflippy |
||
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). | ||
==Getting the Created Object's Reference== | |||
When used to create a single object, this function will return a reference to the created object so that it can be used with additional function calls. | When used to create a single object, this function will return a reference to the created object so that it can be used with additional function calls. | ||
Example: | |||
<pre>scn scriptName | |||
Console | ref refName | ||
begin blockName | |||
set refName to refCreatingObject.PlaceAtMe ObjectToBeCreated 1, 0, 0 | |||
end</pre> | |||
The refName variable will now have a reference to ObjectToBeCreated. | |||
==Console Use== | |||
When using PlaceAtMe with the console, you must use the desired item's [[FormID]], not the EditorID. | |||
So, instead of using | So, instead of using | ||
Line 27: | Line 39: | ||
player.PlaceAtMe 00000A 1, 256, 0 | player.PlaceAtMe 00000A 1, 256, 0 | ||
The FormID can be found on the tab just to the right of the EditorID tab in the Construction Set. This is true for all items and actors, although the FormID tab may need to be enlarged. | The [[FormID]] can be found on the tab just to the right of the EditorID tab in the Construction Set. This is true for all items and actors, although the FormID tab may need to be enlarged. | ||
[[Category: Functions]] | [[Category: Functions]] | ||
[[Category: Miscellaneous Functions]] | [[Category: Miscellaneous Functions]] |