OnNpcTargetSense
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void OnNpcTargetSense( BaseEntity owner, BaseEntity ent, AIBrainSenses brainSenses )
{
Puts( "OnNpcTargetSense works!" );
}
Location
- Rust.AI.SimpleAIMemory::SetKnown(BaseEntity ent, BaseEntity owner, AIBrainSenses brainSenses)
csharp
public void SetKnown(BaseEntity ent, BaseEntity owner, AIBrainSenses brainSenses)
{
if (Interface.CallHook("OnNpcTargetSense", owner, ent, brainSenses) != null)
{
return;
}
IAISenses iAISenses = owner as IAISenses;
BasePlayer basePlayer = ent as BasePlayer;
//---