Skip to content

RemoveScriptFromEntity

15.7

Class Documentation

Edit documentation

A game entity block that removes script instances from the Target entity by script hash.

If the entity is active, every script that runs on the entity then receives the GameEntityOnScriptDetached event. The event variable DetachedScriptHash holds the hash of the removed script.

Properties

RemoveAll

Pointer<IBoolGet> = null
Edit documentation

If true, the block removes every instance of the script. If false, or if the getter fails, it removes only the first instance.