this

Category: Objects
Since engine version: 4.6.5.0 CP

Description

Returns a pointer to the object in the scope of which the script is currently being executed.

Syntax

object this ();

Remark

The parameter brackets can be omitted.

Example

var myid;
myid = GetID(this());
Stores the ID of the calling object in the thread local variable myid.
jwk, April 2002