Author Topic: SetCameraFacing/Convo  (Read 306 times)

Legacy_Ed Venture

  • Full Member
  • ***
  • Posts: 200
  • Karma: +0/-0
SetCameraFacing/Convo
« on: June 16, 2014, 02:48:29 pm »


               

I wrote a simple SetCamFace script. and put it in the ActionTaken of a Convo file. The file has 14 NPC nodes( New Convos set by local variables). It is only in this 14 node that I want to adjust the cam. I've set the script on both PC and NPC nodes. I tried pausing the convo,adjusting the cam,and resuming the convo. The script works every time, if I manualy move the cam angle(left clk, mouse). If I set the convo to not zoom in, it will affect all 14 nodes. Is there anyway around this ?


Ed



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
SetCameraFacing/Convo
« Reply #1 on: June 16, 2014, 10:09:00 pm »


               In general, you can start a new conversation file in the NPC conditional script for a case (using ActionStartConversation).


In case 14, you could try switching to a new file with zoom in disabled, perhaps - haven't tested it.


The other thing to try is a short delay on SetCameraFacing.


I might have a script somewhere - I'll have a look tomorrow.
               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
SetCameraFacing/Convo
« Reply #2 on: June 17, 2014, 08:13:27 am »


               I don't have a script which covers your situation exactly, but I generally wrap SetCameraFacing as a command before starting conversation, to get the timing right. So, the code for starting the new conversation in the Text Appears When script for case 14 might read:


AssignCommand(oPC, ActionDoCommand(SetCameraFacing(DIRECTION, ZOOM_OUT, PITCH)));
AssignCommand(oPC, ActionDoCommand(AssignCommand(oNPC, ActionStartConversation(oPC, "new_dialogue"))));
In the working example I have, the second line reads


AssignCommand(oPC, ActionDoCommand(ExecuteScript("start_again", oNPC)));
where the script start_again contains the ActionStartConversation, but that was only for my convenience, so I guess the above should work.
               
               

               
            

Legacy_Ed Venture

  • Full Member
  • ***
  • Posts: 200
  • Karma: +0/-0
SetCameraFacing/Convo
« Reply #3 on: June 22, 2014, 02:58:26 pm »


               Proleric,
Thanks. I'll give it a whirl. It's probably not a bad idea to start a new convo file. That one is getting kinda huge. I'll let you know how it works out.

I'd friend you if I was on facebook, or any other social media for that matter.
Ed