Reset Portrait
Posted: Mon Dec 26, 2022 2:42 pm
Hi there!
It had been a long time since I wrote here! I've been using PixelCrushers DialogueSystem like it's a life saver for devs!
In my dialog system I've made avatars/pictures appear, I change them with SetPortrait( ActorName , pic= number) in the sequencer.
There are moments where I want a character to speak, but I don't want to show their avatar.
For this I've created a Portrait with an empty image and I call it with
SetPortrait (ActorName , pic= numberContainsEmptyPic).
However, when the dialogue ends I need to put again in SetPortrait(ActorName , pic= 1 ) because if not, I need to do this in every dialogue at start. (Because the dialogue system remember which picture is currently in use, in this case, a "invisible "picture)
My question is:
Can I make a script with a loop "for" to turn all the actor pictures to [1] and call it after the dialogues ?
Something similar to:
for (int i = 0; i < allActorsLenght ; i++)
{
SetPortrait( Actor[ i ], pic= 1)
}
Maybe I'm going around too much for something that has an easier solution?
Thanks in advance!
It had been a long time since I wrote here! I've been using PixelCrushers DialogueSystem like it's a life saver for devs!
In my dialog system I've made avatars/pictures appear, I change them with SetPortrait( ActorName , pic= number) in the sequencer.
There are moments where I want a character to speak, but I don't want to show their avatar.
For this I've created a Portrait with an empty image and I call it with
SetPortrait (ActorName , pic= numberContainsEmptyPic).
However, when the dialogue ends I need to put again in SetPortrait(ActorName , pic= 1 ) because if not, I need to do this in every dialogue at start. (Because the dialogue system remember which picture is currently in use, in this case, a "invisible "picture)
My question is:
Can I make a script with a loop "for" to turn all the actor pictures to [1] and call it after the dialogues ?
Something similar to:
for (int i = 0; i < allActorsLenght ; i++)
{
SetPortrait( Actor[ i ], pic= 1)
}
Maybe I'm going around too much for something that has an easier solution?
Thanks in advance!