Jump to content
maihym

radioChannelCreate Isn't Working

Recommended Posts

So I'm trying to make some custom channels and the radioChannelCreate command isn't working. I keep getting a return of 0. I've even tried testing the example on the wiki and it still returns 0. Can someone please provide me with the correct syntax of the command.

Share this post


Link to post
Share on other sites

What is wrong with you? I just tested

customRadioNumber = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "Q-dance Radio", "%UNIT_NAME", [player]];

And customRadioNumber returns 1.

Share this post


Link to post
Share on other sites

wiki/radioChannelCreate

 

Can you post what you have so far?

Well like I said I tested the example from the wiki and that's really it. Is it because I didn't execute it server side?

Share this post


Link to post
Share on other sites

For multiplayer it would have to be run on the server, yes.  So maybe put it in initServer.sqf?

Share this post


Link to post
Share on other sites

For multiplayer it would have to be run on the server, yes.  So maybe put it in initServer.sqf?

OK I did that and here's what I put.

apddispatch = radioChannelCreate [[0.117, 0.564, 1, 1], "APD Dispatch", "APD Dispatch: %UNIT_NAME", []];

Share this post


Link to post
Share on other sites

I suspect it's the "APD Dispatch: %UNIT_NAME" part.  I'm guessing it only accepts the values found in the wiki for radioChannelSetCallSign.  Try taking out the "APD Dispatch: " part so it's just:

apdDispatchChannel = radioChannelCreate [[0.117, 0.564, 1, 1], "APD Dispatch", "%UNIT_NAME", [p1]];

Assuming you have a unit named p1.  Adjust the final array to match the variable names for your players.

 

If you want a custom callSign, investigate the $key feature of the radioChannelSetCallSign command perhaps?

Share this post


Link to post
Share on other sites

I suspect it's the "APD Dispatch: %UNIT_NAME" part.  I'm guessing it only accepts the values found in the wiki for radioChannelSetCallSign.  Try taking out the "APD Dispatch: " part so it's just:

apdDispatchChannel = radioChannelCreate [[0.117, 0.564, 1, 1], "APD Dispatch", "%UNIT_NAME", [p1]];
Assuming you have a unit named p1.  Adjust the final array to match the variable names for your players.

 

If you want a custom callSign, investigate the $key feature of the radioChannelSetCallSign command perhaps?

OK I finally got it to work, I just needed to execute on the server not the client. Now is it possible to remove the group chat and von for a certain side even if they're in a group

Share this post


Link to post
Share on other sites

OK I finally got it to work, I just needed to execute on the server not the client. Now is it possible to remove the group chat and von for a certain side even if they're in a group

Even though it already says this multiple times on the BIKI page, seems not enough, so I added it one more time.

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

×