void main() { object oSelf=GetLastSpeaker(); if(GetLocalInt(OBJECT_SELF,"UseAnimation")) { ActionPlayAnimation(ANIMATION_PLACEABLE_CLOSE); } }