-
Notifications
You must be signed in to change notification settings - Fork 0
9 Waypoint
dreamness edited this page Mar 26, 2025
·
1 revision
m_2 = Ra3Map.load_map('m_2')
# get a waypoint's info
for w in m.get_waypoints():
print(w.waypoint_name, w.x, w.y)
# Add a waypoint
w1 = m.add_waypoint('w1', 300.9, 1000.2)
# Add a born position for Player_3
w2 = m.add_player_start_waypoint(3, 150.5, 2000.19)
# Delete a waypoint
m.remove_waypoint('w1')
# Alter a waypoint
for w in m.get_waypoints():
if w.waypoint_name == 'w2':
w.waypoint_name = 'w2_mod'
w.x = 909.1
w.y = 340.1
break
m_2.save()