Page 1 of 1

Q2 func_door_rotating help

PostPosted: Sat Aug 02, 2014 7:05 pm
by franqutrass
Hello, I was wondering if anyone of you could help me, I want to add the option to open the doors by pressing "e", the thing is that I've been trying to adapt this code:, in order to make doors open by pressing "e" but it doesn't work. :?

Re: Q2 func_door_rotating help

PostPosted: Fri Jan 04, 2019 6:04 pm
by Knightmare
That tutorial link is now dead, and it looks like the Internet Archive's crawler never managed to grab it.

For adding a key to use an object, I'd recommend looking at the source of the Lazarus mod (included with the KMQuake2 source and also downloadable here). It implements a bindable "+use" key for activating various new entities, such as pushable crates and security monitors.

BTW, you should never hardcode a single key to a function in an id tech game, as some players will want to use that key for other purposes!