OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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:
-
Put the delay you want in the Countdown fields of the trigger. Min Mid Max.
-
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!
-
It should work. Post exactly what you have put in each field in the trigger so we can all see what's happening.
-
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?
send radiomessage 1; ~15; send radiomessage 2
-
a shot into the blue... As it uses also script commands wouldn't it be possible to use the "wait" command?
send radiomessage 1; ~15; send radiomessage 2
It doesn't work. The ~ and the @ only works in scripts, not in activation fields.
-
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
-
-would be asier to make a smal script though...
-
Thanks guys!
The game logic trick worked out just fine! :clap:
It was easy too!
-
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...