local entity gyrohead; local float gyroheadcount; gyrohead = gyro_objectlist_head; while (gyrohead) { gyroheadcount = gyroheadcount + 1; gyrohead = gyrohead.gyro_objectlist_next; }