8 posts in this topic

Ive so far managed to do this & i have two files with with a surrender and UN surrender which work. iv tested it in the editor but i have having issues getting it into the server.  Maybe instead of adding it to the scroll wheel we add a custom button instead 

PLZ be warned i am big noob. im learning 

class playeractions
    {
        targetType = 2;
        target = "Exile_Unit_Player";

        class Actions 
        {
            class surrender: ExileAbstractAction
            {
                title = "Surrender";
                condition = "true";
                action = "_this call surrender\fn_surrender";
            };
            
            class stopsurrender: ExileAbstractAction
            {
                title = "Stop Surrender";
                condition = "true";
                action = "_this call surrender\fn_stopSurrender";
            };
        };
    };

 

======================================================================

fn_surrender

params ["_player"];

_player playMove "AmovPercMstpSsurWnonDnon";
_player setCaptive true;

 

====================================================================

fn_stopSurrender

params ["_player"];

_player switchMove "AmovPercMstpSsurWnonDnon_AmovPercMstpSnonWnonDnon";
_player setCaptive false;

Edited by ATU.Lasthope

Share this post


Link to post
Share on other sites

target = "Exile_Unit_Player";

This is only for other players, i don't think there is an easy way to do this kind of self-interaction.
If you have infistar you can just use !surrender command in the chat.

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement
On 3/12/2019 at 4:10 PM, El Rabito said:

target = "Exile_Unit_Player";

This is only for other players, i don't think there is an easy way to do this kind of self-interaction.
If you have infistar you can just use !surrender command in the chat.

Or is there..? :P (it's not released yet)

 

  • Like 1

Share this post


Link to post
Share on other sites

Like this is the scarcode infomenu/ Could it help me?

 

while { true } do
         {
            if ( getNumber ( missionConfigFile >> "CfgServerInfoMenu" >> "addAction" ) isEqualTo 1 ) then
               {
                  _player = player;
                  _action = _player addAction [ "<img size='1.25' image='\a3\ui_f\data\Map\VehicleIcons\iconVirtual_ca.paa' />   Server Info Menu", "createDialog'RscDisplayServerInfoMenu'", "", -1, false, true, getText ( missionConfigFile >> "CfgServerInfoMenu" >> "openKey" ), "alive player" ];
                  waitUntil { if not ( alive player ) then { _player removeAction _action; true } else { uiSleep 2; false } };
                  waitUntil { if not( _player isEqualTo player ) then { true } else { uiSleep 2; false } };
                  uiSleep 1;                                           

1 hour ago, kuplion said:

Or is there..? :P (it's not released yet)

 

yea as you know lol i either want to get it as a key bind of like how this dude has got it. iv got a add action script which is used for the menu i use is it possible that could help me make it? BUT i dont understand any of the code cause im big dumb dumb            KUPLION SHOW ME DAE WAY XD

Edited by ATU.Lasthope

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.