Vehicles and Mounts
Open MMORPG includes complete support for player-rideable mounts (horses, beasts, flying creatures) and multi-passenger vehicles (carriages, boats, airships).
1. Creating Vehicle Entities
Section titled “1. Creating Vehicle Entities”You can generate mount and vehicle prefabs using the Vehicle Entity Creator:
- Open Tools → Open MMORPG → Develop → Vehicle Entity Creator (3D).
- Assign your rigged mount mesh or vehicle model.
- Configure the title, movement type (Character Controller or Rigidbody), and default speeds.
- Click Create Entity.
- Save the generated GameObject as a prefab in your project.
Alternatively, add the VehicleEntity component to any GameObject carrying movement and collider components.
2. Vehicle Types (VehicleType)
Section titled “2. Vehicle Types (VehicleType)”Every mount entity is categorized by a Vehicle Type asset:
- Right-click in the Project window and choose Create → Create GameData → Vehicle Type.
- Give the asset a descriptive name (e.g.,
Vehicle_HorseorVehicle_Cart). - Assign the asset to the Vehicle Type field on your
VehicleEntityprefab.
Animation Linking: Characters use the assigned
VehicleTypeto look up corresponding riding poses inCharacterModelManager(see Character Models and Animations).
3. Seats Configuration
Section titled “3. Seats Configuration”Mounts can support single riders or multiple passengers:
On the VehicleEntity component, expand the Seats list. Each entry defines a passenger slot:
| Field | Description |
|---|---|
| Passenging Transform | Transform where the rider’s character model attaches while seated. |
| Exit Transform | World position where the rider dismounts and spawns when exiting the vehicle. |
| Can Attack | If enabled, the passenger in this seat can perform basic attacks while mounted. |
| Can Use Skill | If enabled, the passenger can cast active spells and skills while mounted. |
| Camera Target | Custom camera focus transform for passengers in this seat. |
- Seat 0 is the driver/pilot seat controlling locomotion.
- Seats 1+ are passenger seats that orient with the vehicle without driving.
4. Summoning and Dismounting
Section titled “4. Summoning and Dismounting”Players can enter vehicles through two primary mechanics:
- Mount Skills: An active skill with Skill Type set to Mount (
Create GameData/Skill/Skill). - Mount Items: A consumable inventory item with Item Type set to Mount (
Create GameData/Item/Mount Item). - World Vehicles: Walking up to an unowned or wild vehicle entity and pressing the interaction key (E).
To dismount, players press the designated dismount hotkey (V by default) or click the active mount buff in the buffs tray.
