Difference between revisions of "PlaceAtMe"

Jump to navigation Jump to search
306 bytes added ,  00:11, 2 October 2007
Note on PlaceAtMe's reference and same-frame usage
imported>DragoonWraith
(CS 1.0)
imported>Haama
(Note on PlaceAtMe's reference and same-frame usage)
Line 39: Line 39:


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 cause a CTD.
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 cause a CTD.
==Usage in same frame as creation==
If you use the referenced item in the same frame as you use PlaceAtMe, that is
<pre>set pItem to (player.PlaceAtMe IronBow 1, 0, 0)
pItem.Activate player ;this adds the bow to the player</pre>
that item's script may not run. Wait a frame, especially if using Activate.


==Console Use==
==Console Use==
Anonymous user

Navigation menu