%scriptExists()

Aliases%scriptExists( )
Parametersmixed @owner, string @name

    Checks if script with the name @name exists for the target @owner entity.
Such a script will exist if a call_script trigger is defined for the
entity for which the name is @name. If the script exists then 1 is return;
otherwise 0 is returned.

Example:

if( %scriptExists( @n, "repairItem" ) )
{
%scriptCall( @n, "repairItem" )
}
endif