group
Collision group. Entities with the same nonzero group value
don't collide with each other when IGNORE_PUSH is set in the movement call. A7.79Range:
0..30 (default: 0)
Type:
var
Remarks:
-
Through the entities' push or group value
you can determine more specifically than with PASSABLE whether
the entity will be an obstacle to another one or not. Entities with the same group value can move together and are no obstacles for each other.
- When a collision is prevented due to the push or group values of collider and obstacle, the EVENT_PUSH event function is called instead.
-
For ignoring a list of entity groups on collision function, use c_ignore.
Example:
action grenade()
{
my.group = 2; // runs through all entities with the same group value
while(1) {
c_move(....,IGNORE_PUSH);
...
See also:
c_move,
c_rotate, c_trace,c_scan, c_ignore, push, PASSABLE, EVENT_PUSH
► latest
version online