//////////////////////////////////////////////////////////////////////////////// // rts_stop_npcs - strip of powers of team //////////////////////////////////////////////////////////////////////////////// void main() { object oPC=GetEnteringObject(); object oItem; object oMod=GetModule(); string sID=GetLocalString(oPC,"sTeamID"); if (GetIsPC(oPC)!=TRUE) DestroyObject(oPC); else { // PC oItem=GetItemPossessedBy(oPC,"RTSGame_Settings"); if (oItem!=OBJECT_INVALID) DestroyObject(oItem); oItem=GetItemPossessedBy(oPC,"RTSUnit_Creation"); if (oItem!=OBJECT_INVALID) DestroyObject(oItem); oItem=GetItemPossessedBy(oPC,"RTSCreation_Tool"); if (oItem!=OBJECT_INVALID) DestroyObject(oItem); oItem=GetItemPossessedBy(oPC,"rts_it_teamwand"); if (oItem!=OBJECT_INVALID) DestroyObject(oItem); if (GetLocalObject(oMod,"oTeamLead"+sID)==oPC) { } // strip of leadership } // PC }