Skip to content

AddScriptToEntity

15.7

Class Documentation

Edit documentation

A game entity block that adds a script instance to the Target entity, from the inline ScriptDef.

If the entity is active, every script that runs on the entity then receives the GameEntityOnScriptAttached event. The event variable AttachedScriptHash holds the hash of the added script.

Properties