The -180 to +180 range is important to know, thanks. But if that were the problem it would have worked when I was experimenting with -40.
(I've reconsidered, I now like -30 more :happy:)
I'd like to try _L_o_B_o_'s idea, (
I found this thread confirming the problem) but I can't quite figure it out. I thought I'd set a vector variable like so. I put this at the line above "location lSpawn":
vector vOrientation = Vector(134.601,56.4369,32.2178), -30.0);
But that returned an "error parsing variable list" on that line.I thought using a variable made sense since I was using the same vector twice.
But I dropped that and did it the lazy way, instead putting this after the CreateObject line:
//need to get it again in case it wasn't valid before
oTome = UT_GetNearestObjectByTag(oMainControlled, SF_X1_FORMS_TOME);
SetOrientation(oTome, Vector(134.601,56.4369,32.2178), -30.0);
And that said I wasn't using the right parameters for SetOrientation.
If I change it to:
//need to get it again in case it wasn't valid before
oTarget = UT_GetNearestObjectByTag(oMainControlled, SF_X1_FORMS_TOME);
SetOrientation(oTarget, Vector(134.601,56.4369,32.2178), -30.0);
I get an error parsing variable list on the SetOrientation line.
Modifié par Rolenka, 03 juin 2010 - 07:09 .