24 lines
578 B
Plaintext
24 lines
578 B
Plaintext
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// Jump Party Member to Leader
|
||
|
// opw_conv_jlead
|
||
|
// By Don Anderson
|
||
|
//
|
||
|
// Called from the Rest Menu
|
||
|
//
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
object oPC = GetPCSpeaker();
|
||
|
object oLeader = GetFactionLeader(oPC);
|
||
|
|
||
|
//Rest Reset
|
||
|
SetLocalInt(oPC,"REST_MENU",0);
|
||
|
SetLocalInt(oPC, "REST_ALLOWED", FALSE);
|
||
|
|
||
|
//Jump to Leader
|
||
|
AssignCommand(oPC, ClearAllActions());
|
||
|
AssignCommand(oPC,DelayCommand(3.0,JumpToObject(oLeader)));
|
||
|
}
|