Involved in the urea cycle of ureotelic animals where the enzyme plays an important role in removing excess ammonia from the cell. 2 ATP + hydrogencarbonate + NH4(+) = 2 ADP + carbamoyl phosphate + 2 H(+) + phosphate Requires N-acetyl-L-glutamate (NAG) as an allosteric activator.