Q2 func_door_rotating help

Discuss programming topics for any language, any source base. If it is programming related but doesn't fit in one of the below categories, it goes here.
Post Reply
franqutrass
Posts: 69
Joined: Wed Dec 30, 2009 6:29 pm
Location: peru
Contact:

Q2 func_door_rotating help

Post 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:
http://webadvisor.aupr.edu/noc/Othertut ... %20use.htm, in order to make doors open by pressing "e" but it doesn't work. :?
hello
Knightmare
Posts: 63
Joined: Thu Feb 09, 2012 1:55 am

Re: Q2 func_door_rotating help

Post 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!
Post Reply