• 0
Mr.Pig

Russian Roulette - Enable/Disable

Question

@Vishpala

Can you add an enable/disable for Russian Roulette for those that choose not to build one on different maps to prevent the following error in server rpt.

<3

 3:34:53 Error in expression <ir setPosWorld (_x select 0);
}
forEach ExileRouletteChairPositions;
"Russian Ro>
 3:34:53   Error position: <ExileRouletteChairPositions;
"Russian Ro>
 3:34:53   Error Undefined variable in expression: exileroulettechairpositions
 3:34:53 File exile_server\code\ExileServer_system_russianRoulette_initialize.sqf, line 30

 

Share this post


Link to post
Share on other sites

8 answers to this question

  • 1

initServer.sqf just do this:

///////////////////////////////////////////////////////////////////////////////////////////////////
// Russian Roulette
///////////////////////////////////////////////////////////////////////////////////////////////////

_objects =
[
];

{
    private ["_object"];

    _object = (_x select 0) createVehicle [0,0,0];
    _object setDir (deg (_x select 2));
    _object setPosWorld (_x select 1);
    _object allowDamage false;
    _object enableSimulation (_x select 3);
    _object enableSimulationGlobal (_x select 3);; // :)
}
forEach _objects;

ExileRouletteChairs = [];

ExileRouletteChairPositions = 
[
/*
    [[14627.052, 16826.611, 18.004343], 4.9010592], 
    [[14629.161, 16826.707, 18.004343], 1.3332222], 
    [[14628.180, 16824.557, 18.004343], 3.1448042], 
    [[14628.123, 16827.488, 18.004343], 0], 
    [[14629.184, 16825.537, 18.034342], 1.7944603],
    [[14627.175, 16825.453, 18.004343], 4.4050193]
*/
];

{
    private ["_chair"];

    _chair = "Land_ChairWood_F" createVehicle [0, 0, 0];
    _chair setDir (deg (_x select 1));
    _chair setPosWorld (_x select 0);
    _chair allowDamage false;
    _chair enableSimulationGlobal true;

    ExileRouletteChairs pushBack _chair;
}
forEach ExileRouletteChairPositions;

 

Share this post


Link to post
Share on other sites
Advertisement
  • 0

How do I add roulette to other maps please? 

Thanks Razor

Share this post


Link to post
Share on other sites
  • 0
3 hours ago, Razor77 said:

How do I add roulette to other maps please? 

Thanks Razor

you search the forums... its been posted

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, Mr Health And Safety said:

you search the forums... its been posted

Thanks your a great help, much appreciated

Share this post


Link to post
Share on other sites
  • 0
5 minutes ago, Razor77 said:

Thanks your a great help, much appreciated

your welcome. now stop being lazy and search. 

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, Mr Health And Safety said:

you search the forums... its been posted

 

While you gave up your time to write the first comment you could of just posted a link too, but dont worry I will do it for anybody else who needs to know.  

 

Share this post


Link to post
Share on other sites
  • 0
6 minutes ago, Razor77 said:

 

While you gave up your time to write the first comment you could of just posted a link too, but dont worry I will do it for anybody else who needs to know.  

 

So what your saying is i should spend my time searching the forum for the link to provide to you just so you didnt have to search... 

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.