If true, the block removes every instance of the script. If false, or if the getter fails, it removes only the first instance.
RemoveScriptFromEntity
Inheritance 2 ancestors · 35 siblings
- IScriptBlock
- GameEntityBlock
- 0xd6d3da87
- ActivateEntityBlock
- ActivateEntityGroup (removed in patch 15.17)
- ActivateEntityTagBlock
- AddScriptToEntity
- AddTagToEntityBlock
- AttachDynamicScript
- AttachEntityBlock
- ClearGameEntityIconOverride
- CreateEntityBlock (removed in patch 16.8)
- DeactivateEntityBlock
- DeactivateEntityGroup (removed in patch 15.17)
- DeactivateEntityTagBlock
- DestroyEntityBlock
- DetachDynamicScript
- DetachEntityBlock
- ExecuteFunctionEntityBlock
- GetCurrentScriptHashBlock
- GetEntityDirectionBlock
- GetEntityMapIndexBlock
- GetEntityPositionBlock
- GetEntityRotationBlock
- GetTemplateFromEntityBlock
- HideEntityBlock
- HideEntityTagBlock
- PlaceEntityBlock
- RemoveScriptFromEntitycurrent
- RemoveTagFromEntityBlock
- SetEntityPositionBlock
- SetEntityRotationBlock
- SetGameEntityIconEnabled
- SetGameEntityIconOverride
- ShowEntityBlock
- ShowEntityTagBlock
- SpawnEntityBlock
- SpawnPrefabBlock (removed in patch 16.18)
- GameEntityBlock
Class Documentation
Edit documentationA 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
Script
Hash = "0x0" Hash of the script to remove. GetCurrentScriptHashBlock produces this hash for the script that is running.
No documentation available yet. Click "Add documentation" to contribute!