Jump to content
  • 0

Help format array correctly


kingpapawawa

Question

Guys, trying to create an array to change the position of a loot box in a WAI mission.    I also tried putting each item in quotes.

    _loot_pos = [
[[(_position select 0) + 9, (_position select 1) + 2.3, -0.012]],
[[(_position select 0) - 8.5, (_position select 1) - 21, -0.012]],
[[(_position select 0) - 4.3, (_position select 1) - 39, -0.012]]
]; 
    _location         = _loot_pos call BIS_fnc_selectRandom;
    
    //Setup the crate
    _crate_type     = crates_medium call BIS_fnc_selectRandom;
    _crate             = createVehicle [_crate_type, _location,[],0,"CAN_COLLIDE"];

I appreciate any help

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

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
  • Advertisement
  • Discord

×
×
  • Create New...