Skip to content

OnEyePosValidate

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnEyePosValidate( AttackEntity instance, BasePlayer player, Vector3 eyePos, bool checkLineOfSight )
{
    Puts( "OnEyePosValidate works!" );
}

Location

  • AttackEntity::ValidateEyePos(BasePlayer player, UnityEngine.Vector3 eyePos, bool checkLineOfSight)
csharp
protected bool ValidateEyePos(BasePlayer player, Vector3 eyePos, bool checkLineOfSight = true)
{
	object returnvar = Interface.CallHook("OnEyePosValidate", this, player, eyePos, checkLineOfSight);
	if (returnvar is bool)
	{
		return (bool)returnvar;
	}
	bool flag = true;
//---

Released under the MIT License.