LogoLogo
What's new?StatusMSquared
  • Morpheus Platform Documentation
  • What is Morpheus Platform?
    • Glossary
    • Interoperability
    • Support
    • EULA
  • Firewall Problems
  • CREATION
    • Unreal Development
      • Get Started
        • Download the Editor
        • Upload Content
        • Creating your Own Map
        • Morpheus Base Project
        • Differences from Unreal
          • Character Configuration
        • Morpheus Networking
          • Introduction to Morpheus Networking
          • Network Levels
          • Replicated Properties
          • RPCs
          • Morpheus Render Targets
          • Morpheus Array
          • Networking FAQ
          • Replicating Sublevels
      • Editor Versions
      • Performance Guarantees
      • Features & Guides
        • Example Plugin
          • Nameplates
          • In-Game Roles
          • Resizing
        • Actor Pooling
        • Audio
        • Avatars
          • Creating an Avatar
          • Attachments
            • MML Attachments
          • Custom Animation Variables
          • Importing an NFT Collection
          • Capsules and Mesh Transforms
        • Bots
        • Chat
          • Unreal Text Chat
        • Control Panels
          • Control Panel Configuration
          • DJ Booth Mission Control
          • Observer Controls
        • Crowd Audio
          • CrowdAudioComponent advanced configuration
        • Crowd Rendering
          • Legacy Animated Crowd
            • Animated Crowd Console Commands
            • Attaching static meshes to crowd members
          • Crowd Materials
          • Performance Parameters
          • Live Config Settings
          • Crowd Animation
            • Crowd Anim Blueprint
              • User Guide - Crowd Anim Blueprint
              • Reference Guide - ABP Nodes
                • Animation Playback
                • States and State Machines
                • Variables
                • Transitions
                • Special
                • Blends
                • Additional Notes
        • Helpers & Extras
          • "Instanced Objects" in Blueprints
          • Objects with "world context"
          • Making DataAsset classes
          • Duplicate Objects
          • The Bootflow Subsystem
          • The "Wait For Condition" System
          • Advanced Graphics Settings
          • Listening to Inputs on UObjects
          • Morpheus UserID
          • World Services
          • M2Extras: Skins System
        • Loading Screen
        • Live Config
          • Editing for a World
          • Editing Locally
          • Default Settings
          • Accessing via Blueprint
          • Adding New Settings
          • Overriding Defaults
          • Using Arrays
        • MML
        • Motion Capture
        • Networking
        • Notifications
        • Raycastable Crowd
        • Singletons
        • Streaming & Multiplatform
          • GFN on Mobile
        • UI
          • "UI Mode"
        • User Collections
          • Creating a New Object Definition
          • Accessing from Unreal
            • Creating Objects Definitions
            • Transfer Objects
            • User Collection Views
            • Receiving Updates
        • Video Players
          • Embedded Video Player
          • Millicast video streaming
            • How to Setup an In-Game Video Stream
            • Picture-in-Picture mode
          • Streaming Video Player
            • How to Setup a URL Video Player
            • Picture-in-Picture mode
        • Visual Debugging
          • Inspector
        • Web UI
        • Online Services
          • KV Store Service
        • Web Requests
          • Http Requests
            • Legacy HTTP Nodes
          • JSON Handling
          • WebSockets
          • Identity Validation
          • Allowed External URLs
          • Walkthrough Example
            • Example Counter Service
        • World Travel
          • World Travel in the Editor
        • Avatar Physics Assets
        • Action Gameplay Helper Components
      • Workflows
        • Upgrade the Editor
        • Editing Project Settings
        • Profiling
        • Marketplace Importing
        • Extra Workflows
          • Setup Play-in-Editor
          • Setup Local Asset Validation
          • Adding Gameplay Tags
          • Validating Game Assets
          • Custom Connection Modes
          • Connect Editor to a World
          • Common Issues
      • Best Practices
    • Worlds
      • Invite Players
        • Setting Role Groups
      • Persistent Worlds
      • Always on Worlds
    • Running Events
      • Large Scale Events - Checklist
      • Anti-Cheat (EAC)
      • Player Entry
        • React Native
        • Steam
        • Hardware Requirements
      • Broadcast
        • OBS Integration
      • Failover
      • Capacity and Queue Management
  • ADMINS
    • Access Control
      • Add Metaverse Contributors
      • Create a New Project
    • Pricing
      • Development Support
      • Included Usage & Overages
      • Cloud Streaming
      • Access Modes
      • War Room Support
      • Platform SLA
    • Settings
      • Projects
  • APIs and Tooling
    • API Reference
      • Accounts
      • Events
      • Key/Value Store
      • Organizations
      • Realtime
      • User Profile
      • World Builder
      • Worlds
    • Template Web App
      • Moderation
    • Pixel Streaming
    • Launcher
  • Dashboard
    • Assets
      • Assets Versions
      • Engine Plugins
      • Project Plugins
      • Templates
    • Releases
  • Integrations
    • Analytics
      • Send Events from Web
      • Send Events from Unreal
    • Chat
      • Integrate Pubnub with your Unreal Project
      • Add Moderation to Chat
Powered by GitBook
On this page
  • Overview
  • Usage
  • Configuring the module data
  • Listen to selection events
  • Marked Locations

Was this helpful?

  1. CREATION
  2. Unreal Development
  3. Features & Guides
  4. Inventory
  5. How to Make Devices
  6. Device Settings
  7. Device Modules

Location Selector

Last updated 1 year ago

Was this helpful?

Overview

Similar to the player selector, the BP_DeviceModule_LocationSelector allows for selecting a location through a number of means:

  • Manual selection: click at a location, that will be used as the location selected

  • "Your location": your character's current location will be used

  • "Marked locations": you can add actors into the world which are used as "marked locations" which will show up in this list. For more details, see Marked Locations.

  • "World list": returns the list of deployments you can world travel to.

Usage

To use this selector, add it to your item executor's button data. It will then show up in your item controls' button list.

Be sure to enable your module on Event Initialize Executor, and clean it up in Event Tear Down Executor, using SetEnabled and TearDownOnClient respectively.

Configuring the module data

The fields to customize within the location selector module are as follows:

  • ClearOptionsOnSelect - if true, once you have made a selection, the options are cleared immediately. Use this if you want selecting the location to trigger the item's effect. (If you have it false, you can select the location, then trigger the ability separately)

  • AllowManualSelection - if true, you can click on locations in the world, and treat that as the location.

  • AllowSelectSelf - provides the "Your location" option

  • AllowMarkerSelection - shows the "Marked Locations" list

  • AllowWorldSelection - shows the "World List" option.

  • ShortcutAction/ShortcutMapping - controls what button is used for making manual selections. The recommended shortcuts are IA_PresenterSelector1/2 which are bound to left and right click respectively.

Listen to selection events

Depending on what kind of selection you're using, there are different events you can bind to:

  • OnSelectManual - called when a location is selected manually. Provides the vector of the clicked point.

  • OnSelectMarker - called when you select a "marked location" option. Provides the BPM_LocationMarker actor.

  • OnSelectWorld - called when a world list option is selected. Provides the J_WorldTravelWorld details for the selected world.

  • OnSelectOwnLocation - called when the "your location" option is selected.

Marked Locations

We can mark in-world locations using actors extending BPM_LocationMarkerBase. These are then collected, and can be selected as locations for e.g. navigation. Each provides a Location Name, and provides some methods to get details about the marker, e.g. its centre, and how to get a valid location within its area. There are currently two types (but more could be added):

  • BPM_LocationMarkerSphere - the location has a radius around it which is considered valid.

  • BPM_LocationMarkerPolygon - allows you to make a marker shaped by an arbitrary polygon, for more complex areas