14 lines
464 B
Plaintext
14 lines
464 B
Plaintext
// revoke builders rights
|
|
void main()
|
|
{
|
|
object oTarg=GetLocalObject(GetPCSpeaker(),"oTarget");
|
|
object oItem;
|
|
DeleteLocalInt(oTarg,"nBuilder");
|
|
oItem =GetItemPossessedBy(oTarg,"RTSUnit_Creation");
|
|
DestroyObject(oItem);
|
|
oItem=GetItemPossessedBy(oTarg,"RTSCreation_Tool");
|
|
DestroyObject(oItem);
|
|
AssignCommand(oTarg,ClearAllActions());
|
|
AssignCommand(oTarg,SpeakString("Your BUILDER rights have been revoked by my team leader."));
|
|
}
|