Hooking Map Entity Outputs

Hey, I’m looking to more or less hook into a prop_door_rotating’s OnFullyOpen output.

I need to know when doors are fully open. It would either work on individual doors or all doors, I’m not very picky.

I’m seeing things like ENT:StoreOutput and ENT:TriggerOutput but, as far as I know, you cannot add those to an existing map entity.

I would appreciate any help you could give me on this.

I did the same thing for trigger_multiple in maps.

What you need to do is create a “map to lua” entity, which is pretty much just a point entity that has a

ENT:AcceptInput function defined, and you need to give it a name using

Entity:SetName so map entities can interact with it.

After that you can use

Entity:Fire on your prop_door_rotating to add an output using AddOutput. Give that output your “map to lua” entity as a target, and it should work.