void main() { object oObject=GetLastUsedBy(); if (GetIsObjectValid(oObject)&&GetIsPC(oObject)) { AssignCommand(oObject,JumpToObject(GetWaypointByTag("jw_cdexit_wp"))); } }