I'm building a mission for multiplayer, but the waypoint setup script isn't working.
I don't know much about this, so I wanted to ask this question.
local wpzone = trigger.misc.getZone('Mozdok')
local wpZoneV2 = mist.utils.makeVec2(wpZone.point)
local wpTask = {
id = 'Mission',
params = {
airborne = true,
route = {
points = {
[1] = {
type = "Turning Point",
action = "Turning Point",
x = wpZoneV2.x,
y = wpZoneV2.y,
alt = mist.utils.feetToMeters(16500),
speed = mist.utils.knotsToMps(570),
}
}
}
}
}
local group = Group.getByName("Fullback-1")
local groupCon = Group.getController(group)
groupCon:resetTask()
groupCon:pushTask(wpTask)