Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Nuclear1 on January 11, 2010, 09:53:42 pm

Title: Key-pressed, key-reset-multiple, and the repeat count
Post by: Nuclear1 on January 11, 2010, 09:53:42 pm
Alright, this has been irritating me.

I'm trying to get a setup going where every time the player presses a button, something will happen.  I've tried dozens of combinations with the key-pressed, key-reset-multiple, and the trigger/repeat counts, but no luck.  I either get the event (in this case, a test message) simply going over and over again, or just once, and never again.
Title: Re: Key-pressed, key-reset-multiple, and the repeat count
Post by: karajorma on January 12, 2010, 12:05:15 am
The key-pressed SEXP has been broken for quite a while actually. It's more a design flaw with the way it was originally set up.

Your best hope for a repeating event is to use the every-time SEXP together with key-pressed and key-reset-multiple. Which key you actually use will determine your chances of success though as not all keys are treated the same.
Title: Re: Key-pressed, key-reset-multiple, and the repeat count
Post by: Nuclear1 on January 12, 2010, 09:11:57 pm
Rats.

Alright, thanks for the help anyway. :)