OnMissionFailed
Usage
- No return behavior
Example Autogenerated
csharp
private void OnMissionFailed( BaseMission instance, MissionInstance missionInstance, BasePlayer assignee, MissionFailReason failReason )
{
Puts( "OnMissionFailed works!" );
}
Location
- BaseMission::MissionFailed(BaseMission/MissionInstance instance, BasePlayer assignee, BaseMission/MissionFailReason failReason)
csharp
//---
BaseMission.DoMissionEffect(this.failedEffect.resourcePath, assignee);
Facepunch.Rust.Analytics.Server.MissionFailed(this, failReason);
Facepunch.Rust.Analytics.Azure.OnMissionComplete(assignee, this, new BaseMission.MissionFailReason?(failReason));
instance.status = BaseMission.MissionStatus.Failed;
this.MissionEnded(instance, assignee);
Interface.CallHook("OnMissionFailed", this, instance, assignee, failReason);
}