0 votes

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?

in Engine by (12 points)

1 Answer

0 votes

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.

by (7,336 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.