with

with (expression)

{

       coding;

}

 

The with statement simply executes coding with the object specified after the keyword with, as if it were expressionexpression must be either an id, an object name, or a special object (all, self, other, noone).  The with statement is very useful, and shouldn't be forgotten.  coding is either executed for nothing, an instance, an object, everything, itself, or another (what we are in collision with).

 

--oOo--

 

Example:

with (obj_enemy01)

{

// This will destroy the object obj_enemy01.

instance_destroy;

}

 

Abyssal_Nuclei - Revision #1