Jump to content
Sign in to follow this  
Ionflux

Hide radio command

Recommended Posts

Hey guys, cant believe I am struggling with this sad_o.gif. I basically want to make my extraction radio command hidden until I reach a trigger that will enable the user to call in for the extraction. I have searched the forum but I cant seem to find anything. Any help would be really appreciated.

Thanks in advance,

flux

Share this post


Link to post
Share on other sites

Could you set a requirement for the block of code that creates the trigger? That way, the radio trigger doesn't exist until the requirement is met. Say, with a waitUntil command, or something similar that would work for your particular requirements?

Share this post


Link to post
Share on other sites

setTriggerActivation

Give your 'call for extraction' trigger a name (i.e.: triggerExtraction)

in the mission editor set that trigger to:   Activation: NONE

You'll make it available to the players by running this command:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">triggerExtraction setTriggerActivation ["ALPHA","PRESENT",false];

Share this post


Link to post
Share on other sites

In the Init.sqf or .sqs:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

1 setRadioMsg "NULL";

In the trigger:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

1 setRadioMsg "Call for extraction"

Share this post


Link to post
Share on other sites

Hey Reaper thanks for the reply. I cant seem to get it working though  confused_o.gif . I put it to a simple test.

I created a squad and gave them 2 waypoints. The first waypoint I put hold. The second waypoint move. Then I created the trigger, I Synchronized the trigger with the hold waypoint. Then I did what you said,

I put this in my Init.sqs:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

1 setRadioMsg "NULL";

I put this in my trigger condition:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

1 setRadioMsg "Team Alpha attack"; this

To make sure the trigger is working I put this in my on Act:

Quote[/b] ]

Alpha SideChat "(Team Alpha) Rodger! Yes sir, moving now.";

If I put the activation of the trigger on BLUFOR then they just move and I cant use the radio. If you can give me any advice on what to do I would really, really appreciate it.

Thanks in advance

Share this post


Link to post
Share on other sites

For hide a radio message until it's necessary to use it:

Example:

Create a trigger that launch the radio message:

Activation: Radio Alpha

Condition: this

On Act: Leader YourGroup SideRadio "Radio1"

Hide the command that launch the radio message, add this line in the init file:

1 setRadioMsg "NULL";

In the trigger that make appear the message when you want:

Activation: "as you wish"

Condition: "as you wish"

On Act: 1 setRadioMsg "Call for extraction"

Then in game, and when the last trigger is triggered:

tape 0-1 (if i'm not wrong)

The radio message will not appear until the last trigger is triggered, so on the extraction zone for the example.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×