M2O Scripting APIScripting reference
    Preparing search index…
    ClassServer API

    SpikeStrip

    Replicated tyre spike strip that can be enabled or disabled by the server.

    Hierarchy

    • Entity
      • SpikeStrip
    Index
    • Creates a script wrapper for an existing spike strip with this ID; use SpikeStrip.create() to create one.

      Parameters

      • id: number

        Network entity identifier.

      Returns SpikeStrip

    • Sets whether this spike strip is active.

      Parameters

      • enabled: boolean

        True to activate tyre puncturing; false to disable it.

      Returns void

    • Parameters

      • world: number

      Returns void

    • Parameters

      • player: Entity | null

      Returns void

    • Returns a readable representation of this spike strip.

      Returns string

      The spike-strip ID formatted for logging or debugging.

    • Creates and replicates an enabled tyre spike strip.

      Parameters

      • x: number

        Initial world-space X coordinate.

      • y: number

        Initial world-space Y coordinate.

      • z: number

        Initial world-space Z coordinate.

      • Optionallength: number

        Optional physical strip length in world units.

      • Optionalheading: number

        Optional world-space heading angle.

      • OptionalvirtualWorld: number

        Optional virtual-world ID used for visibility filtering.

      Returns SpikeStrip

      The newly created spike-strip handle.

    enabled: boolean

    Whether tyre puncturing is active.

    heading: number

    World-space heading angle.

    id: number
    length: number

    Physical strip length in world units.

    position: Vector3
    rotation: Vector3 | Quaternion
    virtualWorld: number