Skip to content

DetachDynamicScript

16.19

Class Documentation

Edit documentation

A game entity block that removes script instances from the Target entity. It removes the instances of the script that ScriptDef.Script links.

The block raises a script error if the entity does not support scripting, or if the definition links no 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.

ScriptDef

Pointer<IDataObjectGet> = null
Edit documentation

The script definition whose script is removed. If the getter does not produce a GameEntityScriptDefinition, the block does nothing and raises no error.