Steps to reproduce:
1. Create a sprite.
2. Create a family and put the sprite in it, and add a variable (anything).
3. Create sprite in a Function (Func1).
4. Call a second Function (Func2) from Func1 to set the FAMILY variable. In the second function, use the condition to select by UID.
The steps are contrived to produce the bug. There are obvious work arounds, but functions should make things easier, not harder. Besides the bug, I recommend as a feature request to also allow returning the object that was constructed for the calling actions to use, and passing as a parameter as well if possible. There needs to be a better way of "type casting" objects to family types.
Condition selects the family (type-casting the object created in Func1).
Internet Explorer: yes
Operating system & service pack:
Windows 7 x64 SP1
Construct 2 version: