Game Maker

Location

A property type for storing a specific location in your map.

The Location property type stores a full 3D coordinate within your map, including X, Y, Z, yaw, and pitch. All coordinates are relative to your map's origin.

  • Default Value: 0, 0, 0

Common Use Cases

  • Storing a player's last checkpoint.
  • Defining a dynamic teleport destination.
  • Storing the location of a key object that needs to be spawned.
  • Creating a patrol path for an entity.

Operators (in Change Property action)

  • Set: Sets the property to a new location. You can specify:
    • Current Location: The current location of the target player.
    • Map Spawn: The map's default spawn point.
    • Specific Coordinates: Manually input coordinates.
    • Another Location Property: Copy the value from another property.

Checks (in Property Condition)

  • Equals: Checks if the stored location is exactly the same as another location (including yaw and pitch).