how to make unique deferred call

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By miku

hello, i’m trying to make a deferred call on an object to trigger a function, the problem is that it may get called by multiple objects at once, what i’m doing right now is i created a group for this single object so that i can use call_group_flags for this purpose but it seems cumbersome when it comes to dynamically creating objects since they would need to create each their own group, is there a way to do this for a single object w/o the need for that?

:bust_in_silhouette: Reply From: exuin

Really late answer, but stumbled across this question. Anyway, just use call_deferred() but put your own custom function name in the first argument. Like, do call_deferred("my_func", arg1, arg2) and then make a function called my_func.