[QUEST FUNCTION] party.warp()

01/27/2013 17:34 narkosmokus#1
Hi
I'm looking for this function: party.warp()
Does anyone know the solution:
How to warp all members in a party to an other map?
I found this topic:

[Only registered and activated users can see links. Click Here To Register...]

But it has been deleted by the author.
06/13/2016 15:42 xworldx#2
Can somebody help me, how to do it? Thx
06/15/2016 21:50 new Account("Undercover")#3
Code:
function party.warp(...)
	if not party.is_party() then
		return
	end
	
	for _, pid in ipairs(party.get_member_pids()) do
		q.begin_other_pc_block(pid)
		pc.warp(unpack(arg))
		q.end_other_pc_block()
	end
	
	pc.warp(unpack(arg))
end
arguments are passed 1:1 to pc.warp, so you can use it with every parameter that's valid for pc.warp