Jump to content

[LE] Need some help with creating an 'egg'


tesfan1999

Recommended Posts

The simplest way I can think of is to put a script on the base object for the lexicon. In the script do something like this. Not sure if it compiles or will work as is as I wrote it in 30 seconds.

Scriptname SpawnCenturionWhenPlayerDrops extends ObjectReference
 
ActorBase Property Centurion Auto
 
Event OnContainerChanged(ObjectReference akNewContainer, ObjectReference akOldContainer)
    if !akNewContainer && akOldContainer == Game.GetPlayer()
        ; likely the player just dropped it
        self.PlaceAtMe(Centurion)
        self.Disable()
        self.DeleteWhenAble()
    endif
EndEvent
Edited by BigAndFlabby
Link to comment
Share on other sites

Did you fill in the property for the centurion so it knows what to spawn? It won't autofill because I intentionally used a name that isn't matching an actor base editor id. I didn't know which centurion you would want. I did a quick test and used LvlDwarvenCenturion.

Link to comment
Share on other sites

Did you modify the script at all? If so can you post the changes? Also can you post the plugin for review somewhere? I tested the same script I posted above with a trial esp and it did exactly as requested and intended. I'm not sure why it wouldn't be working for you.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...