OnNpcConversationStart
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnNpcConversationStart( NPCTalking instance, BasePlayer ply, ConversationData conversationFor )
{
Puts( "OnNpcConversationStart works!" );
}
Location
- NPCTalking::Server_BeginTalking(BasePlayer ply)
csharp
//---
{
if (this.conversingPlayers.Contains(ply))
{
this.OnConversationEnded(ply);
}
if (Interface.CallHook("OnNpcConversationStart", this, ply, conversationFor) != null)
{
return;
}
this.conversingPlayers.Add(ply);
this.UpdateFlags();
//---