示例#1
0
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());
}
示例#2
0
func OnPlaneFinished(object plane)
{
  // todo: outro
  plane->CreateObject(Plane, 0,0, NO_OWNER);
  plane->RemoveObject();
}