Collision Question

I know the title is ambiguous. But I couldn’t quite fit in anything meaninglful without doubling the length of the UA page, or having most of it cut off. So the question is this:
How can you detect objects colliding with an object and then store these objects for later usage via scripting in Javascript?
In case you didn’t follow that, here’s a breakdown.

  1. How do you pick up collisions with objects with a certain tag?
  2. How do you then ‘store’ these items (so perhaps when another event is triggered, all the collision objects are affected)?

That’s not very clear. Oh well.

I think you’re making this more confusing than it needs to be. Simply use the built in oncollision or ontrigger events, check the colllider’s tag, then if it meets your criteria, add it to an array.