20 lines
669 B
Plaintext
20 lines
669 B
Plaintext
///////////////////////////////////////////////////////////////////////////////
|
|
// powres_pickup - Pick up the power reservoir
|
|
// By Deva Bryson Winblood
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
#include "powres_h"
|
|
#include "color_header"
|
|
|
|
void main()
|
|
{
|
|
object oPC=GetPCSpeaker();
|
|
object oTarget=GetLocalObject(oPC,"oTarget");
|
|
string sS;
|
|
PrintString("powerres_pickup enter");
|
|
sS=ColorString(GetName(oPC)+" has picked up the Power Reservoir!",COLOR_GREEN);
|
|
fnSoundMessage(sS,"NA","as_cv_belltower3");
|
|
DestroyObject(oTarget);
|
|
CreateItemOnObject("rts_powerres",oPC);
|
|
PrintString("powerres_pickup exit");
|
|
}
|