Send Event to Enable/Disable NPC
Posted: Mon May 21, 2018 1:41 pm
Another day, another question...
I'm trying to enable/disable an NPC in my background and I wonder if there is an easy way to do it with events instead of using Playmaker, which can make the process much more tedious.
Basically what I try to achieve is that the player can see the NPC in the background, but during a moment of the conversation I will send an event to disable it, as now I'll be using a big portrait and I don't want to have both assets visible at the same time in the screen.
If the NPC was disabled from the start of the conversation there wouldn't be a problem, but what I need is to enable/disable it during some stages of the conversation. I was thinking that attaching some script to the NPC would make the trick, but not sure if this is even possible.
Thanks!
I'm trying to enable/disable an NPC in my background and I wonder if there is an easy way to do it with events instead of using Playmaker, which can make the process much more tedious.
Basically what I try to achieve is that the player can see the NPC in the background, but during a moment of the conversation I will send an event to disable it, as now I'll be using a big portrait and I don't want to have both assets visible at the same time in the screen.
If the NPC was disabled from the start of the conversation there wouldn't be a problem, but what I need is to enable/disable it during some stages of the conversation. I was thinking that attaching some script to the NPC would make the trick, but not sure if this is even possible.
Thanks!