playMaker

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

blackant

  • Sr. Member
  • ****
  • Posts: 440
  • http://blackantmaster.com
    • View Profile
    • blackantmaster.com
Harray List remove at (Quaternion) doesn't remove
« on: February 11, 2015, 04: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: 15212
  • Official Playmaker Support
    • View Profile
Re: Harray List remove at (Quaternion) doesn't remove
« Reply #1 on: February 16, 2015, 08: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

  • Sr. Member
  • ****
  • Posts: 440
  • http://blackantmaster.com
    • View Profile
    • blackantmaster.com
Re: Harray List remove at (Quaternion) doesn't remove
« Reply #2 on: February 22, 2015, 02: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: 15212
  • Official Playmaker Support
    • View Profile
Re: Harray List remove at (Quaternion) doesn't remove
« Reply #3 on: February 22, 2015, 11:15:58 PM »
Hi,

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

 Bye,

 Jean