M2O Scripting APIScripting reference
    Preparing search index…
    ClassServer API

    ActionPoint

    Replicated interaction point that emits actionPointHit when a player activates it.

    Hierarchy

    • Entity
      • ActionPoint
    Index
    • Creates a script wrapper for an existing action point with this ID; use ActionPoint.create() to create one.

      Parameters

      • id: number

        Network entity identifier.

      Returns ActionPoint

    • Changes the action point's activation radius.

      Parameters

      • radius: number

        Player interaction radius in world units.

      Returns void

    • Changes the action point's interaction prompt text.

      Parameters

      • textId: number

        Game localization text identifier shown at the point.

      Returns void

    • Parameters

      • world: number

      Returns void

    • Parameters

      • player: Entity | null

      Returns void

    • Returns a readable representation of this action point.

      Returns string

      The action-point ID formatted for logging or debugging.

    • Creates and replicates an interactive action point.

      Parameters

      • x: number

        Initial world-space X coordinate.

      • y: number

        Initial world-space Y coordinate.

      • z: number

        Initial world-space Z coordinate.

      • Optionalradius: number

        Optional player interaction radius in world units.

      • OptionaltextId: number

        Optional game localization text identifier for the prompt.

      • OptionalvirtualWorld: number

        Optional virtual-world ID used for visibility filtering.

      Returns ActionPoint

      The newly created action-point handle.

    id: number
    position: Vector3
    radius: number

    Current player interaction radius in world units.

    rotation: Vector3 | Quaternion
    textId: number

    Current game localization text identifier.

    virtualWorld: number