RustTip

OnMlrsTargetSet

OxideCarbonVehicle

Called when mlrs target set occurs.

void OnMlrsTargetSet(MLRS mLRS, Vector3 trueTargetHitPos, object _mounted)
Works — the game method in this build is the one the hook was written for.

Parameters

mLRS
MLRS
trueTargetHitPos
Vector3
_mounted
object

Return value

voidThe return value is ignored — the hook only notifies.

Example

private void OnMlrsTargetSet(MLRS mLRS, Vector3 trueTargetHitPos, object _mounted)
{
    Puts("OnMlrsTargetSet");
}

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

Injection point

Rust.opj (Oxide)
void MLRS.SetUserTargetHitPos(Vector3)

Passes: MLRS mLRS, Vector3 trueTargetHitPos, object _mounted

WorksReturnBehavior: ContinueArgumentBehavior: UseArgumentString (this, this.trueTargetHitPos, this._mounted)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.