explain how to use this mod in other NPC mods
This commit is contained in:
parent
90dc2d34d5
commit
5dbf91800f
12
README.md
12
README.md
@ -446,3 +446,15 @@ its dialog text.
|
||||
The chat command /npc_talk_generic (requires privs priv) is used to list,
|
||||
add or remove NPC from the list of generic dialog/behaviour providers.
|
||||
|
||||
|
||||
Integration into your own NPC/mob mods
|
||||
======================================
|
||||
In order to talk to NPC, you need to call
|
||||
if(minetest.global_exists("yl_speak_up") and yl_speak_up.talk) then
|
||||
yl_speak_up.talk(self, clicker)
|
||||
return
|
||||
end
|
||||
in the function that your NPC executes in on_rightclick.
|
||||
Note that capturing and placing of your NPC is *not* handled by yl_speak_up!
|
||||
Use i.e. the lasso that came with your NPC mod.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user