Skip to content

OnPoweredLightsPointAdd

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnPoweredLightsPointAdd( StringLights instance, BasePlayer player, Vector3 vector, Vector3 vector2 )
{
    Puts( "OnPoweredLightsPointAdd works!" );
}

Location

  • StringLights::SERVER_AddPoint(BaseEntity/RPCMessage msg)
csharp
//---
	}
	if (!this.CheckValidPlacement(vector, 0.1f, 1084293121))
	{
		return;
	}
	if (Interface.CallHook("OnPoweredLightsPointAdd", this, player, vector, vector2) != null)
	{
		return;
	}
	Vector3 vector3 = (this.points.Count > 0) ? this.points[this.points.Count - 1].point : this.wireOrigin.position;
	float num2 = Vector3.Distance(vector, vector3);
//---

Released under the MIT License.