void main() { location lDestination=GetLocation(GetWaypointByTag(GetLocalString(OBJECT_SELF,"TargetWaypoint"))); object oPC=GetPCSpeaker(); object oSelf=GetLastSpeaker(); AssignCommand(oPC,ClearAllActions()); AssignCommand(oPC,ActionJumpToLocation(lDestination)); if(GetLocalInt(OBJECT_SELF,"UseAnimation")) { DelayCommand(0.5,ActionPlayAnimation(ANIMATION_PLACEABLE_CLOSE)); } }