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 [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/ENTITY/AcceptInput]ENT:AcceptInput[/url] function defined, and you need to give it a name using [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/SetName]Entity:SetName[/url] so map entities can interact with it.
After that you can use [img]http://wiki.garrysmod.com/favicon.ico[/img] [url=http://wiki.garrysmod.com/page/Entity/Fire]Entity:Fire[/url] on your prop_door_rotating to add an output using [URL="https://developer.valvesoftware.com/wiki/AddOutput"]AddOutput[/URL]. Give that output your "map to lua" entity as a target, and it should work.
Sorry, you need to Log In to post a reply to this thread.