Page 2 of 2

Re: Another script causing me grief

PostPosted: Thu Apr 09, 2009 11:17 am
by Jac
I'm not sure off hand if you can use positioncell on objects. If so, you could get the coordinates of the book, including the rotation (the z, I think), then spawn in a new copy should the player try to obsond with the exiting one. An alternative would be to use PlaceAtMe on the activator that spanws in a copy of the book if a global variable is set. You'll need to remember to unset the variable after you place the book. If you're using Bloodmoon, try this scripts:

Code: Select all
Begin vRH_removebook

player->removeitem "vrh_booktest_book" 1
PlaceItem "vrh_booktest_book" x, y, z, 0 ;the zero (0) may need to be changed depending upon how the book is placed. The x, y, z are the coordinates of the book in the game world.
StopScript "vRH_removebook"

End


If PlaceItem doesn't work, try PlaceItemCell. Both function the same, but the later allows you specify a cell name. Since it's in the same cell as the player, it shouldn't be an issue.

Re: Another script causing me grief

PostPosted: Thu Apr 09, 2009 12:02 pm
by valre
will give that a try and see how it performs in the setting I need it to perform in ... from seeing the script I think it would work .. it's easy enough to get the right coordinates ... and the mod will need all 3 .esm's so the BM function (I take it that it's a BM function seeing as you refered to BM) shouldn't be a problem ...

Thanks again Jac .. much appreciated.

Re: Another script causing me grief

PostPosted: Thu Apr 09, 2009 12:12 pm
by Jac
Anytime. The placeitem functions are from Bloodmoon I believe, which is why I asked if you're using it. Let me know if it works. If it does, I may wind up using it myself.