• 0
Boose

Set Cement Mixer locations

Question

Posted (edited)

Hello 

 

I have three places that the cement mixer will spawn, im trying to get the cement mixer to spawn each restart in one of these location by using call BIS_fnc_selectRandom

Being rubbish at this im trying to insert it to this

Spoiler

/**
 * Created with Exile Mod 3DEN Plugin
 * www.exilemod.com
 */

ExileRouletteChairs = [];
ExileRouletteChairPositions = [];

// 1 Vehicles
private _vehicles = [
["Exile_ConcreteMixer", [8486.29, 10254.6, 19.5351], [0, 0.998719, 0.0506016], [0, -0.0506016, 0.998719], true],
["Exile_ConcreteMixer", [5199.92, 3658.86, 19.2906], [0, 0.999911, -0.0133317], [0.0266571, 0.0133269, 0.999556], true],

["Exile_ConcreteMixer", [13740.8, 12241.2, 2.54999], [0, 1, 0], [0, 0, 1], true]
];

{
    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;

// 0 Simple Objects
private _invisibleSelections = ["zasleh", "zasleh2", "box_nato_grenades_sign_f", "box_nato_ammoord_sign_f", "box_nato_support_sign_f"];
private _simpleObjects = [

];

{
    private _simpleObject = createSimpleObject [_x select 0, _x select 1];
    _simpleObject setVectorDirAndUp [_x select 2, _x select 3];
    
    {
        if ((toLower _x) in _invisibleSelections) then 
        {
            _simpleObject hideSelection [_x, true];
        };
    }
    forEach (selectionNames _simpleObject);
}
forEach _simpleObjects;

Is it possible to do it in here?

[solved] Mixer now moves location each restart

Edited by Digital Purge

Share this post


Link to post
Share on other sites

0 answers to this question

There have been no answers to this question yet

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.