I have an object that runs an action called truck.
in truck there's a part that says:

if (mouse_left)
selected(); //selected being another function

in selected it says:

function selected()
{
selected_piece = me;
// ... rest of the code
return;
}

how do I have the entity lose the "selected piece" pointer (which I define at the top)
when something happens, like when the loop in selected ends or whatever?