Skip to content

OnNpcConversationRespond

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnNpcConversationRespond( NPCTalking instance, BasePlayer player, ConversationData conversationFor, ResponseNode responseNode )
{
    Puts( "OnNpcConversationRespond works!" );
}

Location

  • NPCTalking::Server_ResponsePressed(BaseEntity/RPCMessage msg)
csharp
//---
		return;
	}
	ConversationData.ResponseNode responseNode = conversationFor.speeches[num].responses[num2];
	if (responseNode != null)
	{
		if (Interface.CallHook("OnNpcConversationRespond", this, player, conversationFor, responseNode) != null)
		{
			return;
		}
		if (responseNode.conditions.Length != 0)
		{
//---

Released under the MIT License.