Hi,
ok, I see, ArrayMaker might be the wrong way for this then.
Do you know you can pass a game object with an event using "Set event data" and retrieve it in the state triggered by that event using "get event info"
Imaging that this gameObject holds an fsm with variable and methods to compute and target properly.
then, really, when you fire at something, you send an event to whatever needs to deal with the fire, that is the player and the enemy likely, and both can retrieve the gameObject and query or access variable on any fsm attached to it and act upon it doing whatever.
if you want to query for a fsm variable on a gameObject, you can simply input the fsm and variable name as string.
So in essence, given your original query, you can also just send a value in the event.
Does that make sense.
Bye,
Jean
Bye,
Jean