func ControlUse(object clonk, x, y) { var objdef = clonk.ObjectSpawnDefinition; if (objdef == Marker) { var marker = clonk->PlaceNewMarker(); if (marker) marker->SetPosition(clonk->GetX() + x, clonk->GetY() + y); } else { clonk->CreateObject(objdef, x, y); } Sound("UI::Click", true, nil, clonk->GetOwner()); }
func OnPlaneFinished(object plane) { // todo: outro plane->CreateObject(Plane, 0,0, NO_OWNER); plane->RemoveObject(); }