void main() { object oPC=GetLastUsedBy(); AssignCommand(oPC,PlayAnimation(ANIMATION_LOOPING_GET_MID,1.0,1.0)); //CreateObject(OBJECT_TYPE_ITEM,"jw_faketrap",GetLocation(OBJECT_SELF)); //AssignCommand(oidUser,ActionUnlockObject(GetObjectByTag("jw_faketrap"))); //DelayCommand(0.5,DestroyObject(GetObjectByTag("jw_faketrap"))); DelayCommand(0.3,PlaySound("as_dr_locked3")); FloatingTextStringOnCreature("*Locked*",oPC); //DelayCommand(0.3,SpeakString("This trap door is locked")); }