Initial Upload
Initial Upload
This commit is contained in:
21
_module/nss/her_debug.nss
Normal file
21
_module/nss/her_debug.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
//a handy way to debug, just send the string and voila, if you caller can't speak
|
||||
//then send a pc or something along with
|
||||
void herDebug(string saywhat, object oSpeaker = OBJECT_SELF);
|
||||
|
||||
void herDebug(string saywhat, object oSpeaker = OBJECT_SELF)
|
||||
{
|
||||
// if (myDebug) AssignCommand(oSpeaker, SpeakString(saywhat));
|
||||
object oPC = GetFirstPC();
|
||||
int i;
|
||||
while (oPC != OBJECT_INVALID)
|
||||
{
|
||||
if (GetPCPlayerName(oPC) == "HerMyT")
|
||||
{
|
||||
i = 1;
|
||||
break;
|
||||
}
|
||||
oPC = GetNextPC();
|
||||
}
|
||||
if (i == 1) SendMessageToPC(oPC, saywhat);
|
||||
}
|
||||
Reference in New Issue
Block a user