SetScript

This function sets an entity script. A script contains predefined functions that get executed while the game runs.

Syntax

Parameters

Returns

Returns true if the script was loaded and run, otherwise false is returned.