Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: Noise on July 01, 2003, 09:26:39 am

Title: FRED Question
Post 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:
Title: FRED Question
Post by: Petrarch of the VBB on July 01, 2003, 09:28:38 am
I'm not at all sure, but you could try the is-button-pressed SEXP.
Title: FRED Question
Post by: karajorma on July 01, 2003, 11:09:53 am
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 :)
Title: FRED Question
Post by: Hippo on July 01, 2003, 11:42:14 am
as for only subachs, no, just any weapon... unless there wasa special check...
Title: FRED Question
Post by: diamondgeezer on July 01, 2003, 11:43:12 am
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?
Title: FRED Question
Post by: Hippo on July 01, 2003, 11:46:09 am
joticks are mapped onto those too, but there isno way to only detect a specific weapon... :(
Title: FRED Question
Post by: diamondgeezer on July 01, 2003, 11:53:26 am
You already said that
Title: FRED Question
Post by: karajorma on July 01, 2003, 12:42:23 pm
Quote
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
Title: FRED Question
Post by: Sesquipedalian on July 01, 2003, 11:16:29 pm
Quote
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:
Title: FRED Question
Post by: Noise on July 02, 2003, 07:50:36 am
Quote
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?
Title: FRED Question
Post by: Hippo on July 02, 2003, 07:52:45 am
Yes

Ifyou put dollar signs around the key in the directves, it will also remap...
Title: FRED Question
Post by: TopAce on July 02, 2003, 08:09:49 am
Unextract the 'Playing Judas' mission from FS1's vp. You will see that the is-key-pressed SEXP was used by Volition, too.
Title: FRED Question
Post by: diamondgeezer on July 02, 2003, 01:28:49 pm
Quote
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.
Title: FRED Question
Post by: karajorma on July 02, 2003, 02:15:40 pm
Quote
Originally posted by diamondgeezer

Now that I didn't know. And that scares me.


News to me too.