OnCrateHack
Usage
- No return behavior
Example Autogenerated
csharp
private void OnCrateHack( HackableLockedCrate instance )
{
Puts( "OnCrateHack works!" );
}
Location
- HackableLockedCrate::StartHacking()
csharp
public void StartHacking()
{
Interface.CallHook("OnCrateHack", this);
base.BroadcastEntityMessage("HackingStarted", 20f, 256);
base.SetFlag(BaseEntity.Flags.Reserved1, true, false, true);
base.InvokeRepeating(new Action(this.HackProgress), 1f, 1f);
base.ClientRPC<int, int>(RpcTarget.NetworkGroup("UpdateHackProgress"), 0, (int)HackableLockedCrate.requiredHackSeconds);
this.RefreshDecay();
//---