OnLivestockAnimalFamiliarityAdd
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private object OnLivestockAnimalFamiliarityAdd( Rust.Ai.Gen2.LivestockAnimal instance, ulong userId, float seconds )
{
Puts( "OnLivestockAnimalFamiliarityAdd works!" );
return null;
}Location
- Rust.Ai.Gen2.LivestockAnimal::AddFamiliarity(ulong userId, float seconds)
csharp
public void AddFamiliarity(ulong userId, float seconds)
{
if (userId == 0L || Mathf.Approximately(seconds, 0f) || Interface.CallHook("OnLivestockAnimalFamiliarityAdd", this, userId, seconds) != null)
{
return;
}
float maxTrust = Livestock.maxTrust;
if (acquaintances == null)
//---