RustTip

OnBoatGroupSpawn

OxideCarbonNaval
object OnBoatGroupSpawn(BoatGroupSpawner boatGroupSpawner, Vector2 local1, Quaternion local4, HashSet list, bool local3, bool spawnsPT)
Method missing — this game build has no method the hook is injected into: until it is updated, the hook is not called.

Parameters

boatGroupSpawner
BoatGroupSpawner
local1
Vector2
local4
Quaternion
list
HashSet
local3
bool
spawnsPT
bool

Return value

objectReturn non-null to cancel the game action.

Example

object — you can affect the game: return a value to change or cancel the action.

private object OnBoatGroupSpawn(BoatGroupSpawner boatGroupSpawner, Vector2 local1, Quaternion local4, HashSet list, bool local3, bool spawnsPT)
{
    Puts("OnBoatGroupSpawn");

    // change nothing — the game continues as usual
    return null;

    // to affect the game:
    // return false; // non-null cancels the game action
}

Works in both Oxide and Carbon: Carbon loads Oxide plugins as is.

Injection point

Rust.opj (Oxide)
void BoatGroupSpawner.SpawnBoatGroup(HashSet<RHIB>, BoatAI.AILoadMode, bool, ScientistBoatOilrigManager)
Method missingReturnBehavior: ExitWhenValidTypeArgumentBehavior: UseArgumentString (this, l1, l4, a0, l3, a2)Assembly-CSharp.dll

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.