Pelgar Posted April 20, 2012 Share Posted April 20, 2012 (edited) (EDIT) Never mind! I just reread the entire wiki page on PlaceAtMe and my question is plainly answered there.The Distance and Direction parameters do not work. No matter what is specified for them, the created reference will be placed in safe location nearby the calling reference. I don't know how I managed to miss that! Does the distance option of the PlaceAtMe function simply not work or am I doing something wrong? From: http://geck.bethsoft.com/index.php/PlaceAtMe;[Object].PlaceAtMe ObjectID:ref Count:int Distance:float Direction:int{0, 1, 2, 3} (Direction:int 0 = in front of, 1 = behind, 2 = left of, 3 = right of) My code from the QuestScript of a very small Quest:set rNewItemlREF to Player.PlaceAtMe RscaNewItemPlayer 1 106 0;Above line places the item right at the Players feet, it does place it in front of him but should place it about five feet in front of him? set rNewItemlREF to Player.PlaceAtMe RscaNewItemPlayer 1 2 0;Above line places item in exactly the same place as the line with distance set to 106 The distance option is listed as a float so I tried:set rNewItemlREF to Player.PlaceAtMe RscaNewItemPlayer 1 106.0 0;Above line will not compile says Unknown vairable 106.0 for parameter Distance My next and final attempt: float fDistset fDist to 106.0set rNewItemlREF to Player.PlaceAtMe RscaNewItemPlayer 1 fDist 0;Above code compiles and runs in game but still places the item at players feet I've noticed several functions where bugs in function options are noted in the GECK Wiki. Is this one that probably should be? Edited April 20, 2012 by Pelgar Link to comment Share on other sites More sharing options...
quacko Posted April 20, 2012 Share Posted April 20, 2012 Well im not going to get all proffesor like on you, cause im simply strong enough with the scripting language, BUT my guess is that you're probably right about it being a bug, since ive been working on and off with a script usingthe placeatme function, and ive had trouble getting the distance to work aswell, i kinda thought that i just had to fiddle around with ita bit more, but ive got a lot of 3d and texturing work going on beside the script, so for now the script had temporarily been put on holduntil the graphics was done.But to see that you have the exact same problem as myself makes me think that it is a problem with the function and not your script,but again, im not strong enough with the scripting to be sure, but that was just my to cents on the subject :) Link to comment Share on other sites More sharing options...
Pelgar Posted April 20, 2012 Author Share Posted April 20, 2012 (edited) Hi Quacko, You either missed my edit at the top of the post or I failed to explain myself well.The Distance and Direction variables of the PlaceAtMe function DO NO WORK, plainly stated in the Notes section at http://geck.bethsoft.com/index.php/PlaceAtMe I went back and reread the PlaceAtMe wiki page right after I started this thread, when I found that line I added the edit at that top. I would like to think that line was added after I originally read the page but I don't think those pages have been updated since the early days of FO3. So I can't use that as an excuse! Glad to know I'm not the only one that missed it, thanks for the reply. Edited April 20, 2012 by Pelgar Link to comment Share on other sites More sharing options...
quacko Posted April 21, 2012 Share Posted April 21, 2012 (edited) No you explained yourself fine, i must have missed the edit, anyways, its kinda strange that it says that the direction doesnt work, cause that part of it ive gotten to work fine,i havent tried the right and left placement mind you, but infront and behind work flawelessly for me... hmmm... Anyways, perhaps if you follow the placeatme function up with a MoveTo function directly after, you can get it to work afterall,well just a thought, if you try this and it works i would be extatic if you'd tell me if it works :)Well i guess i would be, even if it doesnt :P *EDIT*DOH!!! nevermind i just remembered that i DID do that moveto function right after the placeatme functionand it worked for me, as i said its been a while since i worked on the script, due to a lot of weapon, armor and creature modelling and texturing, and i guess my mind is getting old and demented, so bear with me ;) Edited April 21, 2012 by quacko Link to comment Share on other sites More sharing options...
Pelgar Posted April 21, 2012 Author Share Posted April 21, 2012 Hi Quacko, You know I really thought I had tried the direction option and it worked too. It has been a few days so I didn't even mention it, I have some of that old/slow thing going myself. Like I said earlier, that wiki page probably hasn't been updated since the early days of FO3. The direction option could only be working in the FONV version. I believe I've used the MoveTo function with no problems too. I'll probably end up using it here, I'm starting a Timed Quest right after the PlaceAtMe call that replaces the object a couple of times, a very cheap animation. It would play much better if the object were a few feet in front of the player. Link to comment Share on other sites More sharing options...
Recommended Posts