Attaching functions

Functions or actions can either be attached to entities (by WED), or assigned to key, mouse or other events (through script). The following is a list of function pointers that start the assigned function at a certain event. The general syntax for assigning a function to some function pointer is:

event = function;

Assigns a function that is started when the event happens.

Remarks:

A typical beginner's mistake is to write event = function(); instead. This is valid syntax, so no error message will be issued - nevertheless it does something totally different (look at: The wrong way to set events< /STRONG > ).