Hi all,
Is there a way to delete a script from an entity an not just turn it on and off using code?
Thanks
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)
.