14 lines
553 B
Plaintext
14 lines
553 B
Plaintext
// Grant builders rights
|
|
void main()
|
|
{
|
|
object oTarg=GetLocalObject(GetPCSpeaker(),"oTarget");
|
|
object oItem;
|
|
SetLocalInt(oTarg,"nBuilder",TRUE);
|
|
if (GetItemPossessedBy(oTarg,"RTSUnit_Creation")==OBJECT_INVALID)
|
|
oItem=CreateItemOnObject("rtsunit_creation",oTarg);
|
|
if (GetItemPossessedBy(oTarg,"RTSCreation_Tool")==OBJECT_INVALID)
|
|
oItem=CreateItemOnObject("rtscreation_tool",oTarg);
|
|
AssignCommand(oTarg,ClearAllActions());
|
|
AssignCommand(oTarg,SpeakString("I have been granted BUILDER rights by my team leader."));
|
|
}
|