Greeting (in saying, "Hi John!", for instance), apologizing, making a request and giving an order ("Could you pass the salt?" and "Drop your weapon or I'll shoot you!"), or making a promise ("I promise I'll give it back")
In saying, "Watch out, the ground is slippery", Peter performs the speech act of warning Mary to be careful.