Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: BS403 on March 12, 2008, 01:27:42 pm
-
How do I setup an event so it occurs every time a button is pressed not just the first time?
And which sexps do i use so the enemy won't notice/ attack you?
-
Don't have the exact syntax but it's something like this
everytime
key-pressed
<key>
<whatever you want to do>
key-reset
<key>
Those sexp's are in the training section but can be used in a regular game.
-
KK thanks i forgot the everytime.
-
Use protect-ship to make sure that the enemy don't notice you and unprotect-ship to get the opposite effect :)
-
Don't have the exact syntax but it's something like this
everytime
key-pressed
<key>
<whatever you want to do>
key-reset
<key>
Those sexp's are in the training section but can be used in a regular game.
Use key-reset-multiple or you'll get some very odd bugs. Not that you won't get very odd bugs anyway as the key-pressed SEXP is very temperamental about which keys it works with which you start using it in repeated events.