Soundtracks for BG:EE, SoD, BG2:EE, IWD:EE, PST:EE are now available
in the Beamdog store.
Problem with GetObjectVisualTransform
I started messing around with this new function and ran into a problem (or maybe me just not using it right) right away. In testing I set down a placeable object (TEST_TRANSFORMER). And then used a control panel with, what I thought would be a simple script, to simply move the object on x axis. Here's the script on the control panel:
object oPC = GetLastUsedBy();
object oTransformer = GetObjectByTag("TEST_TRANSFORMER");
//int iUseable = GetUseableFlag(oTransformer);
//SendMessageToPC(oPC, "Is Useable: " + IntToString(iUseable));
SetObjectVisualTransform(oTransformer, OBJECT_VISUAL_TRANSFORM_TRANSLATE_X, 5.0);
SendMessageToPC(oPC, "Object not found");
So it works fine but only once. You use the control panel and the test object moves. When you use the control panel again the test object won't move. In addition when you go to click on the test object that just moved, your character will go to the original location of the test object, instead of where it is currently located, and try to use it. Am I just not using the function right or is this still a known bug? I did put in a little bit of debug stuff just to make sure the object still existed.