SetCameraFacing() Question
Zephirius
Member Posts: 419
I can't get oPC to face east...???
I checked the lexicon and didn't glean anything useful.
Everything works except SetFacing. What am I doing wrong?
void main() { object oPC = GetPCSpeaker(); if (!GetIsPC(oPC)) return; AssignCommand(oPC, ClearAllActions()); location lLoc = GetLocation(GetWaypointByTag("SIT_DOWN")); AssignCommand(oPC, ActionMoveToLocation(lLoc, FALSE)); AssignCommand(oPC, SetCameraFacing(0.0, 5.0, 10.0, CAMERA_TRANSITION_TYPE_SNAP)); AssignCommand(oPC, ActionPlayAnimation(ANIMATION_LOOPING_SIT_CROSS, 1.0, 10.0)); }
I checked the lexicon and didn't glean anything useful.
Everything works except SetFacing. What am I doing wrong?
0
Comments
Guess I just needed time for the animation to clear.
As it is, the PC moves to lLoc, but doesn't face east after that. It's only when you disengage from conversation does SetFacing work?
You may need to disable Dialogue Zoom, too, as it tends to resist scripted camera work, especially at end of conversation.
It was in the conversation editor under "current file." Not even remotely close to where I remember it being. Ha!
This is my messed-up block now...
Yeah