Jump to content

Recommended Posts

Is it ok to use x.persists?

 No, x.persists is just a flag that determines whether it saves the prefab when saving the world. For example, placers don't persist, they should never appear when reloading a world.

 

If x:Remove() has been called, x should be nil. But you can (and should) instead hook into the OnRemoveEntity function, which will be way more efficient (and timely) than checking periodically if something has been removed.

Edited by rezecib

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...