Interact With NPCs.
#1

I was lately thinking about creating a script where you can simply approach and NPC and do some sort of command like "/talknpc" and a dialog would show up. On the top of the dialog, it would show you the NPC's response and below you'd have two or three options of what to respond with, for example:

*You approach an NPC*
"/talknpc"
NPC: Whats up, new around here? Whats your name.

Option 1: Yeah, i'm new... Names Owen.
Option 2: Meh, sorta'... Who are you?
Option 3: None of your business, pal.

Any ideas, guides etc?
Reply
#2

You don't have to connect anything to the NPC, just make the command and check if they're close enough to the NPC
Reply
#3

The problem is, I don't know how to do that. :P I've been scripting for a week or so now.
Reply
#4

What exactly don't you know how to do?
Reply
#5

I'm doing this in my gamemode.

Get the position of the NPC, IsPlayerInRangeOfPoint to that, if he is, show a dialog.

What's the issue.
Reply
#6

Alright, i'll try it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)