Jump to content

[LE] How to make an NPC invisible (but still be able to talk to him)?


mentor93

Recommended Posts

How can I make an NPC invisible, but still be able to talk to him? I changed race of my NPC to InvisibleRace and his body disappeared, but I can still see his head. Is InvisibleRace correct thing to set if I want to make an NPC invisible (and I'm just doing something wrong what causes NPC's head to be still visible) or is there some other way to do that?

Link to comment
Share on other sites

I found somewhat of a workaround for this. It works, but there is one bug. I cast Invisibility spell via script:

Event OnInit()
InvisibilitySpell.Cast(Self,Self)
EndEvent

 

For this I created my own spell, called it InvisibilityAlways and set its type to Ability (and duration to 100 days).


The bug I have here is that NPC I'm trying to get invisible has ForceGreet AI package on him, so that when player is near him a dialogue would trigger. This package seems to uncast this spell and makes NPC visible again. NPC actually stays invisible when I press 'E' to talk to him (there's some delay which causes auto-dialogue to start after player spent a couple of seconds near NPC - I don't really know why is that, too). Any idea how to fix that?

Link to comment
Share on other sites

Why don't you just use the "Invisible Actor" that already exists in CK / game ?.

Make a 'Duplicate' of it and use him as you wish.


I think that you are trying to make a 'Dynamic Dialogue' with a 'Non Existence' npc (like a god), if so, you are doing it wrong, you need to learn how to set up a "Talking Activator".

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...