Jump to content

Photo

Scripting - references unreachable by npcs

scripting references inaccessible npc function

  • Please log in to reply
3 replies to this topic

#1
ismael29h

ismael29h

    Regular

  • Members
  • PipPip
  • 76 posts

I understand that there is a function in geck that checks if a reference is reachable. In other words, an npc can walk to it without problems.
What is that function? I need to do that check on a mod and I can't go on.
Thanks in advance for any help you can give me.

 

For example, if an enemy cannot hit you hand-to-hand because you are standing on top of a rock, this enemy usually walks away to verify that he is unreachable.



#2
UnvalidUserName

UnvalidUserName

    Enthusiast

  • Members
  • PipPip
  • 125 posts
What do you need it for? Is it to check for NPC interacting with something or someone or is it to start dialogue with the player?

#3
ismael29h

ismael29h

    Regular

  • Members
  • PipPip
  • 76 posts

What do you need it for? Is it to check for NPC interacting with something or someone or is it to start dialogue with the player?


I need an npc to walk to another npc or bed (random). But sometimes they are in places that cannot be reached. I would like to check this before the npc moves in your direction to choose another target. (transport is discarded)
PS: don't ask what mod I'm creating, lol

#4
ismael29h

ismael29h

    Regular

  • Members
  • PipPip
  • 76 posts

I have managed with "GetTargetUnreachable", it seems to work. The problem is solved :happy:







Also tagged with one or more of these keywords: scripting, references, inaccessible, npc, function

Page loaded in: 1.117 seconds