Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Noise on July 01, 2003, 09:26:39 am
-
Okay, for a mission I need to know the event sequence that will occur if Alpha 1 fires the primary weapons. Basically, he pulls the trigger on the Subach and the event occurs. I've looked high and low but can't seem to be able to do it. Help.:confused:
-
I'm not at all sure, but you could try the is-button-pressed SEXP.
-
There isn't a key for the joysticks fire button but I believe that it will work if you use the left CTRL.
You may need to chain the trigger to an event that resets the CTRL key first (if alpha has already fired in the mission).
Hmmm. If that doesn't work post again and I'll see if I can do it. I love little FRED puzzles like this :)
-
as for only subachs, no, just any weapon... unless there wasa special check...
-
What you want is and and-in-sequence event;
Event Name
when
and-in-sequence
time-elapsed (for example)
key-pressed
This will fire when the given time has elapsed (or what ever other condition you wish to use) and then the given key is pressed. Note that FS2 will compensate for remapped keys, thus if a player has remapped left CTRL (which is the default for primary fire) the event will activate when the remapped key is pressed. Clever, no?
-
joticks are mapped onto those too, but there isno way to only detect a specific weapon... :(
-
You already said that
-
Originally posted by Hippo
as for only subachs, no, just any weapon... unless there wasa special check...
I'm assuming that the whole subach thing was just an example and Noise only wants to know how to check when the trigger is pulled.
EDIT : If you want to check for individual weapons you'll need a new weapon-selected SEXP. I'd ask myself but I don't want to be accused of adding another one to the list of 45 SEXPs no one will ever use :D
-
Originally posted by karajorma
I'd ask myself but I don't want to be accused of adding another one to the list of 45 SEXPs no one will ever use :D
Heh. :rolleyes:
-
Originally posted by diamondgeezer
What you want is and and-in-sequence event;
Event Name
when
and-in-sequence
time-elapsed (for example)
key-pressed
This will fire when the given time has elapsed (or what ever other condition you wish to use) and then the given key is pressed. Note that FS2 will compensate for remapped keys, thus if a player has remapped left CTRL (which is the default for primary fire) the event will activate when the remapped key is pressed. Clever, no?
Just to make sure. I've got primary fire as "button 1", but since FRED doesn't list "button 1" I can just put left CTRL as the "key-pressed" and FS2 will automatically adjust itself to another persons settings?
-
Yes
Ifyou put dollar signs around the key in the directves, it will also remap...
-
Unextract the 'Playing Judas' mission from FS1's vp. You will see that the is-key-pressed SEXP was used by Volition, too.
-
Originally posted by Hippo
Ifyou put dollar signs around the key in the directves, it will also remap...
Now that I didn't know. And that scares me.
-
Originally posted by diamondgeezer
Now that I didn't know. And that scares me.
News to me too.