Difference between revisions of "LeveledItem"

64 bytes added ,  20:04, 19 January 2009
m
→‎Scripted items with OnAdd blocks: Clarify description of workaround
imported>SnakeChomp
m (→‎Leveled Item Options: Fix link to setting which is now on this page)
imported>SnakeChomp
m (→‎Scripted items with OnAdd blocks: Clarify description of workaround)
Line 41: Line 41:


== Scripted items with OnAdd blocks ==
== Scripted items with OnAdd blocks ==
If a scripted item is added by a leveled list directly into an actor's inventory when the actor is spawned (by being present in the actor's inventory in the GECK), any OnAdd blocks for the item script will not execute. There is a workaround for this, and it is to use a GameMode block like this.
If a scripted item is added directly into an actor's inventory when the actor is spawned (by being present in the actor's inventory in the GECK or by being selected from a leveled list which is in the actor's inventory), the OnAdd block in the item script will not execute. There is a workaround for this, and it is to use a GameMode block and an OnAdd block.


<pre>short doonce
<pre>short doonce
Anonymous user