kingpapawawa Posted February 28, 2017 Report Share Posted February 28, 2017 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 More sharing options...
0 Sp4rkY Posted February 28, 2017 Report Share Posted February 28, 2017 _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] ]; cheers Link to comment Share on other sites More sharing options...
0 kingpapawawa Posted March 1, 2017 Author Report Share Posted March 1, 2017 I *thought* i had tried it that way and got an error but now that I did it and it worked... I have to wonder about the late night editing. Thanks Sp4rkY Link to comment Share on other sites More sharing options...
Question
kingpapawawa
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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now