WreckMPUtils - maceeikodev/WreckMP_Ref GitHub Wiki

Definition

public static class WreckMPUtils

Useful helper methods

Static methods

public static void CreateSleepTrigger(bool makeCollider, GameObject gameObject, GameObject sleepTriggerObj, Vector3 pivotPos, Vector3 pivotRot);

Create a sleep trigger. Does NOT work in singleplayer!

makeCollider - If set to true, creates a trigger sphere collider of radius 0.4m on the sleepTriggerObj.

gameObject - The root game object of the pickable bed, if it's able to be picked up, otherwise set to null.

sleepTriggerObj - The pivot on which the sleep trigger will be created.

pivotPos - Sleeping pose pivot position.

pivotRot - Sleeping pose pivot euler angles.

public static void CreateTowHookTrigger(GameObject pivot);

Create tow hook trigger on the specified pivot. Does NOT work in singleplayer!

pivot - The pivot to create tow hook on. The pivot's parent has to be the root vehicle transform, or other unique named object.