- Code:
self
- Code:
this
Example
- Code:
// Gets an entity
someEntity = getent("ent", "targetname");
// Calls the function "doSomething()" on it
someEntity doSomething();
doSomething()
{
// Attaches the variable "myVariable" to someEntity and assigns it 5
self.myVariable = 5;
}