Aller au contenu

Photo

SetCameraFacing/Convo


  • Veuillez vous connecter pour répondre
3 réponses à ce sujet

#1
Ed Venture

Ed Venture
  • Members
  • 102 messages

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



#2
Proleric

Proleric
  • Members
  • 2 356 messages
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.

#3
Proleric

Proleric
  • Members
  • 2 356 messages
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.

#4
Ed Venture

Ed Venture
  • Members
  • 102 messages
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