I have the following setup:
playerUnits (family)
--> family instance variables: fireRate, bulletMatch
--> family behavior: Timer (by Rex)
playerBullets (family)
--> family instance variables: bulletMatch
--> family behavior: bullet
<img src="http://i.imgur.com/o91PyE1.png" border="0" />
In the image above:
At SOL, each instance of the playerUnits family receives a regular (ie continuous) timer based on the various fireRate values I've assigned from my Dictionary object. Debugger shows all timers are working correctly.
What a timer triggers, and I'm assuming it picks the instance it triggers on, I am passing the instance's bulletMatch number to my "spawn pBullet" function.
I am then trying to pick the specific corresponding bullet object to be spawned based on matching playerUnits.bulletMatch with playerBullets.bulletMatch.
Current result: random bullet family objects being spawned, all simultaneously from all player family objects, and they quit spawning after 3 or 4 shots.