Welcome to Altis Life RPG

Register now to gain access to all of our features.
Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.


Note that you can now sign-in with your Steam account.


This message will be removed once you have signed in.

  • Announcements

    • AltisLifeRpg

      Opening Announcement   09/13/2016

      Opening Announcement We are happy to announce the official reopening of the community assistance forum Altis Life RPG (open source public property). Before going any further, let's go over the current situation. As you are already aware, the forum and the database of Altisliferpg.com had been hacked a few weeks ago. This unfortunate situation has touched many communities of Arma 3. The various databases were erased, and since they were under the responsibility of the previous administration, no backup was able to recover the lost data. This means that all the tedious work must be redone. This regrettable situation has led Tonic to transfer the responsibility of its administration to a new and neutral party. This party has as sole goal to reunite every community, as diverse as they are, together to perpetuate the development of our beloved mod AltisLifeRPG.  First of all, I think it is important to clarify our intentions. Foremost, we want to reassure you that we are not proclaiming being the owners of the previous versions of Altis Life (open source public property) in collaboration with BoGuu based on Tonic' codes. As you know, Boguu has been a major player in the most recent versions. Please note that this platform is and will always remain open to future developers such as Boguu that would like to elevate Altis Life RPG to the next level. By doing so, we take our role as an official reference platform very seriously in the eyes of the vast community of Altis Life RPG. We are ready to face this responsibility. We are aware that the content added by users could be provided by external sources or from the original website. If you see a tutorial that you've created on our platform where you are not credited as the author, please mention it immediately to the administration and we will promptly fix the situation. Please note that seeing the overwhelming amount of content added by the community, we will not proactively search other community assistance websites to validate if proper credits were given to the various authors. Instead, it will be the author's responsibility to be proactive in contacting the administration. Since the majority of the content found on other websites came originally from Altisliferpg.com, we encourage members joining us to share any content deemed pertinent coming from other platforms without forgetting to credit the authors.       Finally, to clarify the rumors circulating: - The forum was not scammed. It was transferred directly from Bryan 'Tonic' Boardwine to our administration. A domain cannot be scammed. - The forum was transferred as an independent entity which has as a sole mission to perpetuate the forum and not let it die out.       Altisliferpg.com Regards, the Administration.       Feel free to join us on Discord in the Altis Life RPG Community section of the forum.   And of course if you have any question, feel free to message us here.
    • Rozo

      Donations   09/18/2016

      Hello,
        We've added a donation block on the right side. All of those donation goes directly to the developer of Altis Life mod ( currently BoGuu ). None of that money is used to maintain the forum. In the future we might add a donation button to support the forum, but for now we want to encourage the developer because they went through a lot. To discuss this topic - Here
    • Shakir Darwish

      IS YOUR SERVER BROKEN SINCE 1.64 UPDATE?   09/22/2016

      If your server is broken since 1.64 go check this link thanks. https://github.com/AsYetUntitled/Framework/issues/104
    • Rozo

      Sad Day   01/04/2017

      Good evening community of Altis Life RPG, Today was a sad day. We learned the hard way that one of the helper was using his status and visibility on the forum to do things i wouldn't imagine.  We were warned about this user in the beginning, we talked about his behavior and he said that they were things of the past. We were fooled.
      Unfortunately, he fooled other community members by selling stolen content and impersonating his role as a developer in another community. Here's a remember of one of the rules on our forum, No selling scripts, snippets, or services.   So if anyone come across someone who's selling his services, scripts or whatever, Report them. Especially if it's coming from an Helper, Mod, Admin. No one in the staff should ask for money, we already mention this when we reopened the forum and that rule is here to stay.

      We can't be sorry enough for what happen here, for any harm it as caused among other communities, for money that shouldn't been spent and we truly hope this doesn't happen again.

      As for the user in question, he is now banned from our forum and discord and we wish to never cross his path again.
        If there's anything we can do hit us on Discord or send a message to an admin.
      Thanks, Rozo.
Sign in to follow this  
fhiser

Problems with the Channels Radio's

Hello everyone,

 

I've been trying to write a script to create a custom radio. Reading the Arma 3 documentation explains the following:

https://community.bistudio.com/wiki/radioChannelCreate

https://community.bistudio.com/wiki/radioChannelAdd

My problem is to add people to the radio, but according Arma 3 is done as follows:

_index radioChannelAdd [player];

When I put that in, nothing happens. But if I put the name of the character, if that works:

_index redioChannelAdd [civ_1];

I've been breaking my head with this for 3 weeks, to see if anyone can help me.

 

My script:

[player] remoteExec ['life_fnc_radio',RSERV];
private ["_unit","_radio"];

_unit = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;

_radio = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "New Radio", "%UNIT_NAME", []];
_radio radioChannelAdd [_unit];

 

Share this post


Link to post
Share on other sites
1 hour ago, fhiser said:

Hello everyone,

 

I've been trying to write a script to create a custom radio. Reading the Arma 3 documentation explains the following:

https://community.bistudio.com/wiki/radioChannelCreate

https://community.bistudio.com/wiki/radioChannelAdd

My problem is to add people to the radio, but according Arma 3 is done as follows:

_index radioChannelAdd [player];

When I put that in, nothing happens. But if I put the name of the character, if that works:

_index redioChannelAdd [civ_1];

I've been breaking my head with this for 3 weeks, to see if anyone can help me.

 

My script:

[player] remoteExec ['life_fnc_radio',RSERV];
private ["_unit","_radio"];

_unit = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;

_radio = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "New Radio", "%UNIT_NAME", []];
_radio radioChannelAdd [_unit];

 

It appears you are remote executing it to the server

Share this post


Link to post
Share on other sites

Yes saw that too. This is weird.

remember :

when a player remoteexec another player : target need to be the player.

when the server remoteexec a player target need to be the owner of the player.

But in your case why do you even remoteexec, just spawn your code.

[player] spawn life_fnc_radio;

 

Share this post


Link to post
Share on other sites
23 hours ago, Deadlesszombie said:

It appears you are remote executing it to the server

I realized after a while, that code already works for me, but I tried to improve it and it gives me a problem again, I try to put it in an If and it does not go.

26 minutes ago, KR3 said:

Yes saw that too. This is weird.

remember :

when a player remoteexec another player : target need to be the player.

when the server remoteexec a player target need to be the owner of the player.

But in your case why do you even remoteexec, just spawn your code.

[player] spawn life_fnc_radio;

 

I do it with remoteexec because I was posing the script as if it were a mobile, so when I expand it for two players I will have to use it. At the moment I was doing tests on a single player to see if I would be able to do what I want.

 

My  problem now is that if I put everything in an if, it does not work:

private ["_unit","_player","_radio"];

_unit = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
_player = [_this,1,ObjNull,[ObjNull]] call BIS_fnc_param;

if (call) then {
	_radio = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "New Radio", "%UNIT_NAME", []];
	_radio radioChannelAdd [_unit,_player];
} else {
	hint format ["%1 does not respond",_unit]
};

 

Thx and sorry for my english.

Share this post


Link to post
Share on other sites
7 hours ago, fhiser said:

My  problem now is that if I put everything in an if, it does not work:

private ["_unit","_player","_radio"];

_unit = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
_player = [_this,1,ObjNull,[ObjNull]] call BIS_fnc_param;

if (call) then {
	_radio = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "New Radio", "%UNIT_NAME", []];
	_radio radioChannelAdd [_unit,_player];
} else {
	hint format ["%1 does not respond",_unit]
};

 

Thx and sorry for my english.

Where is call defined?
And rpt logs?

Share this post


Link to post
Share on other sites

Just add it into life_server\Functions\Systems\fn_manageSc.sqf
That'll add the people using the default Altis Life system although you will have to assign your radio to a variable after you create it.

Example:
life_server\Functions\Systems\fn_manageSc.sqf
 

/*
    File: fn_manageSC.sqf
    Author: Bryan "Tonic" Boardwine

    Description:
    User management of whether or not they want to be on a sidechat for their side.
*/
private ["_unit","_bool","_side"];
_unit = [_this,0,objNull,[objNull]] call BIS_fnc_param;
_bool = [_this,1,false,[false]] call BIS_fnc_param;
_side = [_this,2,civilian,[west]] call BIS_fnc_param;

if (isNull _unit) exitWith {};

switch (_side) do {
    case west: {
        if (_bool) then {
            life_radio_west radioChannelAdd [_unit];
        } else {
            life_radio_west radioChannelRemove [_unit];
        };
    };

    case civilian: {
        if (_bool) then {
            life_radio_civ radioChannelAdd [_unit];
        } else {
            life_radio_civ radioChannelRemove [_unit];
        };
    };

    case independent: {
        if (_bool) then {
            life_radio_indep radioChannelAdd [_unit];
        } else {
            life_radio_indep radioChannelRemove [_unit];
        };
    };
};

life_radio_custom radioChannelRemove [_unit]; //Not sure if this is needed or not ¯\_(ツ)_/¯
life_radio_custom radioChannelAdd [_unit];

In life_server\init.sqf

After: 

/* Setup radio channels for west/independent/civilian */
life_radio_west = radioChannelCreate [[0, 0.95, 1, 0.8], "Side Channel", "%UNIT_NAME", []];
life_radio_civ = radioChannelCreate [[0, 0.95, 1, 0.8], "Side Channel", "%UNIT_NAME", []];
life_radio_indep = radioChannelCreate [[0, 0.95, 1, 0.8], "Side Channel", "%UNIT_NAME", []];

Insert:

life_radio_custom = radioChannelCreate [[0.96, 0.34, 0.13, 0.8], "New Radio", "%UNIT_NAME", []];

Untested, don't know if it will work.

Edited by Burni Zarzof
  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this