Jump to content

Recommended Posts

Prefabs register once. And that one time is when the postinit functions are loaded.

So no, impossible, unless you manually reach the modfns table and input new functions there.

 

But it's better to put variables

local flag = falseAddPrefabPostInit("boards", function(inst)	if flag then		inst.param = "Hello"	else		inst.param = "World"	endend)

to adjust the postinit.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...