The get_position()
function returns Gizmo's current location in the world. Use this function to determine Gizmo's coordinates in the game environment.
position = get_position()
None.
The function returns an object with three properties:
x
: An integer representing Gizmo's x-coordinate.y
: An integer representing Gizmo's y-coordinate.z
: An integer representing Gizmo's z-coordinate.Here's an example of how to use the get_position()
function:
# Get Gizmo's current position
position = get_position()
# Print Gizmo's coordinates
print(f"Gizmo's position: X={position.x}, Y={position.y}, Z={position.z}")
# Check if Gizmo is at a specific location
target_x, target_y, target_z = 10, 0, 5
if position.x == target_x and position.y == target_y and position.z == target_z:
print("Gizmo has reached the target position!")
else:
print("Gizmo is not at the target position yet.")
This example shows how to retrieve Gizmo's position and check if it matches a specific target location.
get_position()
function is available from the start of the game (UnlocksAtLevel: 0).