How to lock an actor?

Hi. Is there a way to lock an actor, so when I click on it it doesn't respond as it would, for example spawn something etc? Please help. me, it would be appreciated!
Thanks!
Thanks!
Comments
_________
Otherwise: Stuff you want it to do.
Boolean: Locked
If Locked = True
Door closed
Else: door open