[SOLVED] Deleting a script from an entity through code

Hi all,

Is there a way to delete a script from an entity an not just turn it on and off using code?

Thanks

I believe you can call this.entity.script.destroy(name) where name is the name of your script (that is the name inside pc.createScript(name).

1 Like

Thanks a lot @vaios.