I want to have multi units instanceable, storing many peds as needed without having to create multiple variables and if sentences for each one. However, I have no idea of how to manage it, I don't know how to return the value of the previous array, once I set a new one.
So, for example, if I store many peds in array ={}, like this:
integer = integer + 1
array[integer] = ped
Whenever I use a condition like PedMePlaying(array[integer], "Default_KEY", true), it will only detect the last stored ped.
How do I get the value of the previous ones?