OnSupplyDropLanded
OxideCarbonEntityCalled when a supply drop is landed.
void OnSupplyDropLanded(SupplyDrop supplyDrop)Works — the game method in this build is the one the hook was written for.
Parameters
- supplyDrop
- SupplyDrop
Return value
voidThe return value is ignored — the hook only notifies.
Example
private void OnSupplyDropLanded(SupplyDrop supplyDrop)
{
Puts("OnSupplyDropLanded");
}Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.
Injection point
Rust.opj (Oxide)
void SupplyDrop.OnCollisionEnter(Collision)
Passes: SupplyDrop supplyDrop
WorksReturnBehavior: ContinueArgumentBehavior: JustThisAssembly-CSharp.dll
Where it is called (this branch's game code)
// …
{
flag = true;
}
if (flag)
{
RemoveParachute();
MakeLootable();
}
Interface.CallHook("OnSupplyDropLanded", this);
}Sources: Rust.opj from OxideMod/Oxide.Rust (MIT) and hook metadata of the Carbon documentation (MIT). Method code is decompiled from this branch's server.