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 loud scream from nearby."))); DelayCommand(3.0, DestroyObject(oSpeaker)); }