Characters["character name"].CharacterActive = false -- hide character & prevent interaction
-- or...
Characters["character name"].CharacterActive = true -- show character & allow interaction
1
2
3
4
5
6
You mean a character that you have linked to a scene object?Hi, I am trying to use the visibility solution. But how do I set the visibility of the NPC at 0% when the game starts? (so I can turn it at 100% later in the game). I guess the show/hide functionality is also an option, but the same problem...
1. unlink the npc characters starting position in the npc characters properties tab.
2. use the set character to object or set character to position action part to bring in the character when you want it to be in the scene.
3. alternatively you could set the character opacity (visibility) or use Lua to enable / disable the character with...Characters["character name"].CharacterActive = false -- hide character & prevent interaction
-- or...
Characters["character name"].CharacterActive = true -- show character & allow interaction1
2
3
4
5
6
use "at begin use following action" in the game settings to run some actions before game starts. There you can place your action parts