Skip to content

OnEventTrigger

Usage

  • Return a non-null value to override default behavior

Example Autogenerated

csharp
private void OnEventTrigger( TriggeredEventPrefab instance )
{
    Puts( "OnEventTrigger works!" );
}

Location

  • TriggeredEventPrefab::RunEvent()
csharp
public override void RunEvent()
{
	if (Interface.CallHook("OnEventTrigger", this) != null)
	{
		return;
	}
	Debug.Log("[event] " + this.targetPrefab.resourcePath);
	BaseEntity baseEntity = GameManager.server.CreateEntity(this.targetPrefab.resourcePath, default(Vector3), default(Quaternion), true);
//---

Released under the MIT License.