13 lines
420 B
Plaintext
13 lines
420 B
Plaintext
|
void main()
|
||
|
{
|
||
|
|
||
|
object oMySpeaker = GetLastSpeaker();
|
||
|
object oMyTarget = GetLocalObject(oMySpeaker, "dmfx_wandtarget");
|
||
|
location lTargetLoc = GetLocalLocation(oMySpeaker, "dmfx_wandloc");
|
||
|
|
||
|
object oSpeaker = CreateObject(OBJECT_TYPE_PLACEABLE, "speaker_item", lTargetLoc, FALSE);
|
||
|
DelayCommand(0.5, AssignCommand( oSpeaker, ActionSpeakString ("You hear a distant scream.")));
|
||
|
DelayCommand(3.0, DestroyObject(oSpeaker));
|
||
|
|
||
|
}
|