OnCrateHackEnd
Usage
- No return behavior
Example Autogenerated
csharp
private void OnCrateHackEnd( HackableLockedCrate instance )
{
Puts( "OnCrateHackEnd works!" );
}
Location
- HackableLockedCrate::HackProgress()
csharp
public void HackProgress()
{
this.hackSeconds += 1f;
if (this.hackSeconds > HackableLockedCrate.requiredHackSeconds)
{
Interface.CallHook("OnCrateHackEnd", this);
Facepunch.Rust.Analytics.Azure.OnLockedCrateFinished(this.originalHackerPlayerId, this);
if (this.originalHackerPlayer != null && this.originalHackerPlayer.serverClan != null)
{
this.originalHackerPlayer.AddClanScore(ClanScoreEventType.HackedCrate, 1, null, null, null, null);
}
//---