Jump to content

juddo

Member
  • Content Count

    5
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About juddo

  • Rank
    Rookie
  1. thanks. you are correct :) i edited it and checked i wasnt doing this with my code (which i am not). i typed that array off the top of my head... i edited my first post to reflect what i have in my script.
  2. hello. i've read many threads on here and the wiki page, but noone appears to have asked how to remove a value from a 2d array. im copying an array like this; _myarray = []; _myarray = + _copythisarray; the wiki says to remove an item from a nested array; _array = [["first","hello1"],["second","hello2"],["third","hello3"]]; _array set [1,-1]; _array = _array - [-1]; // _array will now contain: [["first","hello1"],["third","hello3"]] i understand the above, but i have an array in an array in an array (2d array). example; _myarray = [ [ [0,0,0], [1,1,1], [2,2,2] ], [ [3,3,3], [4,4,4], [5,5,5] ], [ [6,6,6], [7,7,7], [8,8,8] ] ]; i want to remove 2,2 for example (8,8,8). i tried many different brackets and scenarios like; _myarray select 2 set [2, "delete_me"]; _myarray select 2 = _myarray select 2 - ["delete_me"]; or (_myarray select 2) set [2, "delete_me"]; (_myarray select 2) = (_myarray select 2) - ["delete_me"]; i tried a few other things but they didnt work either. i keep getting error messages in game saying missing ';' end of line. which makes me think its related to how i am calling the array... anyone come across this or know a work around? any help would be very appreciated! thanks for your time. best regards, justin
  3. i fixed this problem by making my own identitys... alpha is gonna alpha!
  4. aeroson - thanks for the tips! i fixed the problem. i wont admitt how long i spent on this, but it feels good to have it working properly. for anyone who comes across this... i was running a .sqf script with [] exec "blah.sqf" < big no-no. i was getting uncontrolled behaviour. i for some reason decided to try run it with nul = [] execvm "blah.sqf" < bingo!
  5. alright! i fixed the problem i was having. for anyone who comes across this... check your file types! i accidently had half my files saved as .sqs, not all as .sqf! i was getting weird results... i was loading the script filenames correctly, if you were wondering.
×