If you mean that inside the function there are actions to apply to object with the string flee then you can use conditions inside the function object.string=flee to pick the right one.
If you are calling the function in an action from the object with string flee and you want to pick the same one then you can send the objects UID through the function as a parameter, then inside the function you can pick object where UID = parameter to ensure it is the same instance.
thankyou, i get tunnel vision working solo and overlook simple things like this.