// Sends a message to the nearest PC who is alive to us. void main() { object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, OBJECT_SELF, 1, CREATURE_TYPE_IS_ALIVE, TRUE); SendMessageToPC(oPC, "The ceiling has collapsed"); }