0 |
1 |
1 |
0 |
|
<- Bitmask (6), first four bits of 21 shown |
Enabled ? |
0 |
0 |
0 |
1 |
|
<- Ent1 group ID (1) |
No |
0 |
0 |
1 |
0 |
|
<- Ent2 group ID (2) |
Yes |
0 |
1 |
0 |
0 |
|
<- Ent3 group ID (4) |
Yes |
1 |
0 |
0 |
0 |
|
<- Ent4 and Ent5 group ID (8) |
No |
phent_setgroup( ent1, 1 ); phent_setgroup( ent2, 2 ); phent_setgroup( ent3, 4 ); phent_setgroup( ent4, 8 ); phent_setgroup( ent5, 8 ); // activate ent1, all others are paused ph_selectgroup( 1 ); // activate ent2 & ent3 ph_selectgroup( 6 ); // activate ent4 & ent5 ph_selectgroup( 8 ); // run them all ph_selectgroup( 15 );