event_type
Variable set at the beginning of
many event functions
to indicate the kind of event.
Type:
var, read-only
Modified by:
c_move, c_trace, c_scan,
and any other event triggering function.
Example:
function player_event()
{
if (event_type == EVENT_BLOCK)
{
collision_with_block()
}
if (event_type == EVENT_ENTITY)
{
collision_with_entity()
}
}
See also:
Event
► latest
version online