• 0
C][G GhostTown™

Russian Roulette

Question

I have created my own trader's and roulette area, Upon first starting server it worked and was fine.

Now I am getting this error:

Spoiler

11:25:05 Error in expression <Of "Exile_RussianRouletteChair") then

{

ExileRouletteChairs pushBack _vehicle;

E>

11:25:05   Error position: <ExileRouletteChairs pushBack _vehicle;

E>

11:25:05   Error Undefined variable in expression: exileroulettechairs

11:25:05 File a3_custom\traders\maintrader.sqf, line 473

11:25:05 Error in expression <Of "Exile_RussianRouletteChair") then

{

This is my file calls:

Spoiler

{
    private _vehicle = (_x select 0) createVehicle (_x select 1);
    _vehicle allowDamage false;
    _vehicle setPosWorld (_x select 1);
    _vehicle setVectorDirAndUp [_x select 2, _x select 3];
    _vehicle enableSimulationGlobal (_x select 4);
    _vehicle setVariable ["ExileIsLocked", -1, true];
    
    if (_vehicle isKindOf "Exile_RussianRouletteChair") then
    {
        ExileRouletteChairs pushBack _vehicle;
        ExileRouletteChairPositions pushBack [_x select 1, getDir _vehicle];
    };
}
forEach _vehicles;

and my chairs:

Spoiler

["Land_GH_MainBuilding_right_F", [1235.94, 2455.65, 8.00518], [0.094259, 0.995548, 0], [0, 0, 1], false],
["Exile_RussianRouletteChair", [1232.32, 2442.04, 6.95993], [0, 1, 0], [0, 0, 1], false],
["Exile_RussianRouletteChair", [1233.78, 2441.55, 6.93944], [0.654346, 0.756195, 0], [0, 0, 1], false],
["Exile_RussianRouletteChair", [1233.09, 2441.9, 6.93831], [0.312572, 0.949894, 0], [0, 0, 1], false],
["Exile_RussianRouletteChair", [1231.63, 2440.24, 6.88607], [-0.691185, -0.722678, 0], [0, 0, 1], false],
["Exile_RussianRouletteChair", [1232.31, 2439.86, 6.88995], [-0.359479, -0.933153, 0], [0, 0, 1], false],
["Exile_RussianRouletteChair", [1233.07, 2439.68, 6.91341], [-0.0497889, -0.99876, 0], [0, 0, 1], false],
["VR_GroundIcon_01_F", [1238.86, 2437.62, 6.98046], [0, 1, 0], [0, 0, 1], false],

Like I said, it worked the first time I started the server? :/

Share this post


Link to post
Share on other sites

1 answer to this question

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.