Jump to content

Possible?


senterpat

Recommended Posts

Is it possible to script objects so that you can spawn items based of their rotation and position? I'm working on a mod that open containers as doors, an allows you to see what your looting, I have the script to spawn leveled lists items and everything, but can think of a way to get the items to spawn on the shelves. I could do a dummy object like skyrim, but would rather not have to manually place each of those in every container. I'm not to great with angles and what have you, can't seem to wrap my mind around how I can get this to work.

Link to comment
Share on other sites

It is definitely possible, but will probably take a while to figure out/perfect.

 

With PlaceAtMe: http://geck.bethsoft.com/index.php?title=PlaceAtMe

 

You can specify an offset, but unfortunately only along X or Y axis. You could workaround that by using GetPos + SetPos, GetAngle + SetAngle. Or by moving an XMarker around and using that for the PlaceAtMe. You'll need some math in there.

 

You'll likely need to run the script over multiple frame, because PlaceAtMe and Movements aren't instantly to effect.

 

--

As an aside, NVSE 4.6 adds Events, you can use this to do an OnActivate trigger for containers without having to attach the object scripts to each one.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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