playMaker

Author Topic: Harray List remove at (Quaternion) doesn't remove  (Read 2369 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Harray List remove at (Quaternion) doesn't remove
« on: February 11, 2015, 06:36:51 AM »
Hi,

i have this problem in my program.
Using 'Array list get Random' and just after that 'Array list remove At'

i get the random card like i want but it 's clearly not removed after that, it can cause duplicated index during this step, wich is not desired in the rules of my game..

i have to precise that, i'm using Quaternion variables in the list

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Harray List remove at (Quaternion) doesn't remove
« Reply #1 on: February 16, 2015, 10:22:44 AM »
Hi,

 Removing should not be affected by what the value is, this is very odd.

 'll try to repro this, meanwhile,

-- do you have several arrayList on the gameObject? else you'll need to use the reference to target the proper components.

are you sure you are not getting mixed up with the index? don't forget that indexes starts at 0, index 0 = first item.

 Bye,

 Jean

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: Harray List remove at (Quaternion) doesn't remove
« Reply #2 on: February 22, 2015, 04:56:28 PM »
i use the reference to find it without problem
because in my system, i use a get random action and just after that remove at the same index

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Harray List remove at (Quaternion) doesn't remove
« Reply #3 on: February 23, 2015, 01:15:58 AM »
Hi,

 If you can send me a repro, that will be great.

 Bye,

 Jean