OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Sorcerer on 27 Sep 2006, 21:47:56

Title: Message and reply
Post by: Sorcerer on 27 Sep 2006, 21:47:56
How can I send a radiomessage and get a reply shortly thereafter?

I tried making a trigger with radio activation for the message and then another with a delay for the reply, but delay dosn't seem to work for the activation field.

Anybody?

 :clap:
Title: Re: Message and reply
Post by: macguba on 27 Sep 2006, 22:34:44
Put the delay you want in the Countdown fields of the trigger.     Min  Mid  Max.
Title: Re: Message and reply
Post by: Sorcerer on 28 Sep 2006, 21:15:11
Yeah, that's what I tried at first but it doesn't seem to work!

Okay, I made two triggers. Each with a radio message, one is the initial message and the other is a reply.

The initial message trigger gets no delay and the reply trigger gets, let's say 15 sec.

However, when I call the Radio Alpha that both triggers are connected to, both messages sound at the same time, completely disregarding the delay I gave the reply trigger.

I know it can be solved (sort of) by placing a "present trigger" along the route of the recieving unit but this gets messy really fast, so if anybody can think of another solution please bring it on!

 
Title: Re: Message and reply
Post by: macguba on 29 Sep 2006, 00:30:34
It should work.    Post exactly what you have put in each field in the trigger so we can all see what's happening.
Title: Re: Message and reply
Post by: myke13021 on 29 Sep 2006, 12:35:52
a shot into the blue...

in the on activation field you can type multiple things to happen.

As it uses also script commands wouldn't it be possible to use the "wait" command?

Code: [Select]
send radiomessage 1; ~15; send radiomessage 2
Title: Re: Message and reply
Post by: nominesine on 29 Sep 2006, 12:43:09
a shot into the blue... As it uses also script commands wouldn't it be possible to use the "wait" command?
Code: [Select]
send radiomessage 1; ~15; send radiomessage 2

It doesn't work. The ~ and the @ only works in scripts, not in activation fields.
Title: Re: Message and reply
Post by: Mandoble on 29 Sep 2006, 18:17:09
Sorcerer, to do it the "easy" way follow these steps:

1 - Create a simple trigger activated by Radio Alpha (trigger type "none"), put whatever you want into its activation field for your initial radio transmission.

2 - Put a gamelogic near that trigger and add a single waypoint to the gamelogic. In the timeout boxes put the delay you want between your messages, same number for the three boxes (Min, Max, Mid). In the activation field of this waypoint add the code for your second  radio transmission.

3 - Draw a synchronization line between the trigger and the waypoint of the gamelogic.

4 - Enjoy  :D
Title: Re: Message and reply
Post by: XCess on 03 Oct 2006, 23:58:44
-would be asier to make a smal script though...
Title: Re: Message and reply
Post by: Sorcerer on 04 Oct 2006, 20:39:57
Thanks guys!

The game logic trick worked out just fine!  :clap:

It was easy too!
Title: Re: Message and reply
Post by: Mr.Peanut on 05 Oct 2006, 15:33:40
Some ppl find editor based solutions more intuitive. I am not one of those ppl tho...
-would be asier to make a smal script though...